We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18ce9d8 commit 7dea463Copy full SHA for 7dea463
app/assets/js/script.js
@@ -1,3 +1,5 @@
1
+import {setCookie} from "./tools.js";
2
+
3
const {ipcRenderer, shell} = require('electron');
4
5
import * as tools from "./tools.js";
@@ -22,6 +24,10 @@ window.onload = async () => {
22
24
if (tools.getCookie("saveLocation")) location.value = tools.getCookie("lastLocation");
23
25
if (tools.getCookie("cache") !== null) tools.loadAllData(location);
26
27
+ if (tools.getCookie("closeToTray")) {
28
+ ipcRenderer.send("enableCloseToTray");
29
+ }
30
31
const notification = document.getElementById("updateNotification");
32
const message = notification.querySelector(".message");
33
const restartButton = notification.querySelector('.restart-button');
0 commit comments