scripts: tweaks

This commit is contained in:
bordun 2020-04-03 12:58:53 +02:00
parent ef3559ffef
commit 08efe1689e
2 changed files with 16 additions and 10 deletions

View file

@ -60,7 +60,13 @@ window = {
platform:''
},
NodeList: Array,
WebSocket: Object
WebSocket: Object,
localStorage: {
getItem(){return null}
}, sessionStorage: {
getItem(){return null},
setItem(){},
},
}
Object.assign(global, window)
@ -73,3 +79,4 @@ DOM.init()
ELECTRON_NOGPU = false
CANVAS_FRAMERATE = 1
LANG = 'en'
ENV = {id: ''}