|
@@ -9,7 +9,7 @@ var onlineStatusWindow;
|
|
|
|
|
|
app.on('ready', function() {
|
|
|
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
|
|
|
- onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html');
|
|
|
+ onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
|
|
|
});
|
|
|
````
|
|
|
|
|
@@ -43,7 +43,7 @@ var onlineStatusWindow;
|
|
|
|
|
|
app.on('ready', function() {
|
|
|
onlineStatusWindow = new BrowserWindow({ width: 0, height: 0, show: false });
|
|
|
- onlineStatusWindow.loadUrl('file://' + __dirname + '/online-status.html');
|
|
|
+ onlineStatusWindow.loadURL('file://' + __dirname + '/online-status.html');
|
|
|
});
|
|
|
|
|
|
ipc.on('online-status-changed', function(event, status) {
|
|
@@ -69,4 +69,4 @@ ipc.on('online-status-changed', function(event, status) {
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|
|
|
-````
|
|
|
+````
|