Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 4253389

Browse files
committed
Keep mods in window.mods
1 parent a2bdd64 commit 4253389

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/_renderer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ initMods = () => {
121121
e.setAttribute("class", "mod_column activated");
122122
});
123123

124-
let clock = new Clock("mod_column_left");
125-
let sysinfo = new Sysinfo("mod_column_left");
124+
window.mods = {};
125+
window.mods.clock = new Clock("mod_column_left");
126+
window.mods.sysinfo = new Sysinfo("mod_column_left");
127+
window.mods.cpuinfo = new Cpuinfo("mod_column_left");
126128
};
127129

128130
// Prevent showing menu, exiting fullscreen or app with keyboard shortcuts

0 commit comments

Comments
 (0)