mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixed bug in requirejs defaults and moved to electron v7...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bdef19ccf8
commit
f3255921fd
@ -4,6 +4,9 @@
|
|||||||
*
|
*
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
var requirejs_cfg = {
|
var requirejs_cfg = {
|
||||||
|
// NOTE: on electron v7+ the default seems to be '../', bug?
|
||||||
|
baseUrl: './',
|
||||||
|
|
||||||
// XXX this does not work on direct filesystem access...
|
// XXX this does not work on direct filesystem access...
|
||||||
//urlArgs: 'bust='+Date.now(),
|
//urlArgs: 'bust='+Date.now(),
|
||||||
|
|
||||||
|
|||||||
@ -101,6 +101,7 @@ function createWindow(){
|
|||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
contextIsolation: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
// let the window to get ready before we show it to the user...
|
// let the window to get ready before we show it to the user...
|
||||||
|
|||||||
@ -97,7 +97,6 @@ if(window.require){
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
require('./cfg/requirejs')
|
require('./cfg/requirejs')
|
||||||
// XXX BUG this is broken on electron 7+...
|
|
||||||
requirejs('ui')
|
requirejs('ui')
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
1007
Viewer/package-lock.json
generated
1007
Viewer/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"app-module-path": "^1.0.6",
|
"app-module-path": "^1.0.6",
|
||||||
"async-json": "0.0.2",
|
"async-json": "0.0.2",
|
||||||
"electron": "^6.0.0",
|
"electron": "^7.0.0",
|
||||||
"exiftool": "^0.0.3",
|
"exiftool": "^0.0.3",
|
||||||
"fs-extra": "^7.0.1",
|
"fs-extra": "^7.0.1",
|
||||||
"fs-walk": "^0.0.1",
|
"fs-walk": "^0.0.1",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user