-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Communicate settings updates to viewer window Remove force of light theme Set global variables for electron and mainWindow Add core to global Initialize menu after initializing core Use localStorage for preference storage in addition to JSON file so viewer window can pull on settings updates Pull latest HTML
- Loading branch information
1 parent
c5cf7a1
commit b741e48
Showing
8 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule core
updated
from 4925cd to e0770c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
/* eslint import/no-unresolved: 0 */ | ||
global.electron = true; | ||
global.mainWindow = true; | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
global.platform = require('./js/desktop_scripts'); | ||
global.controller = require('./js/controller'); | ||
const core = require('./core/js/index'); | ||
global.core = require('./core/js/index'); | ||
|
||
// Pull in navigator from core | ||
const navigator = fs.readFileSync(path.resolve(__dirname, 'core/navigator.html')); | ||
document.querySelector('#navigator').innerHTML = navigator; | ||
core.search.init(); | ||
global.core.search.init(); | ||
global.core.menu.init(); | ||
|
||
document.body.classList.add(process.platform); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters