Skip to content

Commit

Permalink
⬆️ webview browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed May 21, 2016
1 parent 0d007ff commit 6953fb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion webview/browser/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function handleKeyDown(event) {
function handleLoadCommit() {
resetExitedState();
var webview = document.querySelector('webview');
document.querySelector('#location').value = webview.getUrl();
document.querySelector('#location').value = webview.getURL();
document.querySelector('#back').disabled = !webview.canGoBack();
document.querySelector('#forward').disabled = !webview.canGoForward();
closeBoxes();
Expand Down
8 changes: 4 additions & 4 deletions webview/browser/main.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
var app = require('app');
var BrowserWindow = require('browser-window');
const {app, BrowserWindow} = require('electron');

let mainWindow;

var mainWindow = null;
app.on('window-all-closed', function() {
app.quit();
});

app.on('ready', function() {
mainWindow = new BrowserWindow({width: 1024, height: 768 });
mainWindow.loadUrl('file://' + __dirname + '/browser.html');
mainWindow.loadURL('file://' + __dirname + '/browser.html');
mainWindow.openDevTools();
});
2 changes: 1 addition & 1 deletion webview/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Browser Sample",
"version": "1.0",
"version": "1.1.0",
"main": "main.js"
}

0 comments on commit 6953fb4

Please sign in to comment.