diff --git a/main.js b/main.js index 5963102..5fd746c 100644 --- a/main.js +++ b/main.js @@ -201,6 +201,7 @@ function createOperatorWindow() { }); // operatorWin.webContents.openDevTools(); + operatorWin.webContents.executeJavaScript('localStorage.setItem("version","' + app.getVersion() + '")'); operatorWin.loadFile('operator.html'); @@ -264,8 +265,6 @@ function createFloatingWindow() { floatingWin.loadFile('floating.html'); - floatingWin.webContents.executeJavaScript('localStorage.setItem("version","' + app.getVersion() + '")'); - // Envia a contagem inicial para a janela flutuante const data = readData(); floatingWin.webContents.on('did-finish-load', () => { diff --git a/operator.html b/operator.html index a338341..d9ed711 100644 --- a/operator.html +++ b/operator.html @@ -19,6 +19,14 @@ + +
+ Iniciar automaticamente com o sistema +
+ @@ -29,11 +37,11 @@