Merge branch 'pr/debug-autoreload' of https://github.com/MartinHN/open-stage-control into autoreload
This commit is contained in:
commit
bcf80a1668
3 changed files with 55 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