add integrated html error and reloading when debuging
This commit is contained in:
parent
28326f2ee0
commit
c8821855ff
3 changed files with 56 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue