Skip to content

Commit

Permalink
Don't Show Dark Offline Page if dark mode is off.
Browse files Browse the repository at this point in the history
  • Loading branch information
cstayyab committed May 19, 2020
1 parent b73a521 commit f24f4e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions offline.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { ipcRenderer } = require('electron');

const Store = require('electron-store');
const settings = new Store({ name: 'settings' });
const times = [5, 10, 30, 60];
let index = 0;
let counter = times[index];
Expand Down Expand Up @@ -40,4 +41,10 @@ retryButton.addEventListener('click', () => {
clearTimeout(timeout);
liveCheck();
});
count();
count();

if(settings.get('darkMode.value')) {
document.body.classList.add('bg-dark');
} else {
document.body.classList.remove('bg-dark');
}

0 comments on commit f24f4e3

Please sign in to comment.