Commit e406bdcf authored by Mihkel Putrinš's avatar Mihkel Putrinš

disable DOM throttling

parent 06a3010b
......@@ -26,8 +26,10 @@ if (IS_DEV) {
app.on('ready', function() {
USER_PATH = path.join(app.getPath('temp'), 'user.json')
// windows['authWindow'] = new BrowserWindow({ width: 900, height: 600, show: true, "web-preferences": {partition: ''} })
windows['authWindow'] = new BrowserWindow({ width: 900, height: 600, show: true, "web-preferences": {partition: "persist:panustaja (build " + (pjson.build) + ")"} })
var web_preferences = {
"partition": "persist:panustaja (build " + (pjson.build) + ")",
}
windows['authWindow'] = new BrowserWindow({ width: 900, height: 600, show: true, "web-preferences": web_preferences })
var title = pjson.name + ' v.' + pjson.version + (pjson.version.indexOf('-') > -1 ? pjson.build : '') + ' | Logi sisse'
windows['authWindow'].center()
windows['authWindow'].setTitle(title)
......@@ -46,7 +48,11 @@ app.on('ready', function() {
windows['authWindow'].webContents.selectAll()
windows['authWindow'].webContents.copy()
mainWindow = new BrowserWindow({ width: 900, height: 600, show: true })
var web_preferences = {
"partition": "persist:panustaja (build " + (pjson.build) + ")",
"page-visibility": true, // Prevent throttling DOM timers (app gets less priority while in background)
}
mainWindow = new BrowserWindow({ width: 900, height: 600, show: true, "web-preferences": web_preferences })
mainWindow.setTitle('Panustaja')
mainWindow.center()
var view_path = path.join(app.getAppPath(), 'code', 'main.jade')
......
......@@ -2,7 +2,7 @@
"name": "Panustaja",
"description": "Ressursikataloogi upitamiseks keeleressurside Entu repositooriumisse.",
"version": "1.0.1-d",
"build": 88,
"build": 94,
"main": "./code/app.js",
"license": "CC-SA",
"private": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment