misc: fix some module require orders

This commit is contained in:
bordun 2020-04-03 12:34:39 +02:00
parent 831f80f7b0
commit cd2e77272c
5 changed files with 19 additions and 8 deletions

View file

@ -1,11 +1,15 @@
var loopProtect = require('loop-protect'),
{deepCopy} = require('../utils'),
globals
setTimeout(()=>{
globals = {
screen: {width: screen.width, height: screen.height},
env: deepCopy(ENV),
url: document.location.host,
platform: navigator.platform
}
})
class Vm {