add integrated html error and reloading when debuging

This commit is contained in:
Martin Hermant 2018-10-18 02:34:22 +02:00
parent 28326f2ee0
commit c8821855ff
No known key found for this signature in database
GPG key ID: FA123D713AB2A87C
3 changed files with 56 additions and 2 deletions

View file

@ -5,7 +5,8 @@ var path = require('path'),
{ipc} = require('./server'),
{deepCopy} = require('./utils'),
theme = require('./theme'),
chokidar = require('chokidar')
chokidar = require('chokidar'),
{BrowserWindow} = require('electron')
var openedSessions = {},
widgetHashTable = {},
@ -294,6 +295,12 @@ module.exports = {
fullscreen: function(data) {
window.setFullScreen(!window.isFullScreen())
},
refresh: function(data) {
for (var w of BrowserWindow.getAllWindows()){
w.reload()
}
},
reloadCss:function(){
theme.load()