This commit is contained in:
mediaslav 2017-03-04 23:29:23 +03:00
parent 6030db749e
commit 58fd2bb4fd
2 changed files with 12 additions and 1 deletions

9
preload.js Normal file
View File

@ -0,0 +1,9 @@
console.log('in preload', __dirname)
PreApp = {
log: s => {console.log('PreApp:', s)},
}
window.addEventListener('load', e => {
PreApp.log('in onLoad')
})

View File

@ -5,7 +5,9 @@ const child_process = require('child_process')
const wardir = path.resolve(__dirname, 'draw.io', 'war')
const appjsonpath = path.resolve(wardir, 'package.json')
let ver = fs.readFileSync(path.resolve(__dirname, 'draw.io', 'VERSION'), 'utf8')
// let ver = fs.readFileSync(path.resolve(__dirname, 'draw.io', 'VERSION'), 'utf8')
let ver = '6.2.5' // just to test autoupdate
let pj = require(appjsonpath)