diff options
Diffstat (limited to 'src/app/js')
-rw-r--r-- | src/app/js/browser.js | 6 | ||||
-rw-r--r-- | src/app/js/mods.js | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js index 05bf01d..c859024 100644 --- a/src/app/js/browser.js +++ b/src/app/js/browser.js @@ -263,6 +263,10 @@ var Browser = { } } +if (navigator.onLine) { + Browser.loadfront(); +} + function openExternal(url) { require("electron").shell.openExternal(url); } @@ -362,7 +366,7 @@ function BrowserEl(properties) { <div class="text"> <div class="title">${properties.title}</div> <div class="description">${properties.description}</div> - <button class="install blue" onclick=''>${installstr}</button> + <button class="install bg-blue" onclick=''>${installstr}</button> <button class="info" onclick="Preview.set('${properties.url}')">${lang('gui.browser.view')}</button> <button class="visual">${properties.version}</button> <button class="visual">${lang("gui.browser.madeby")} ${properties.author}</button> diff --git a/src/app/js/mods.js b/src/app/js/mods.js index 6c2fc22..a2e4492 100644 --- a/src/app/js/mods.js +++ b/src/app/js/mods.js @@ -34,8 +34,8 @@ mods.load = (mods_obj) => { <div class="text"> <div class="title">${mod.Name}</div> <div class="description">${mod.Description}</div> - <button class="switch on"></button> - <button class="red" onclick="mods.remove('${mod.Name}')">Remove</button> + <button class="switch on orange"></button> + <button class="bg-red" onclick="mods.remove('${mod.Name}')">Remove</button> <button class="visual">${mod.Version}</button> <button class="visual">by ${mod.Author || "Unknown"}</button> </div> |