scripts: tweaks
This commit is contained in:
parent
ef3559ffef
commit
08efe1689e
2 changed files with 16 additions and 10 deletions
|
|
@ -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: ''}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue