diff options
author | Devaev Maxim <[email protected]> | 2019-07-13 06:38:55 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-07-13 06:38:55 +0300 |
commit | 98468bfa3069e76862be8e0a19bbe8e3fc6748fa (patch) | |
tree | 8a2cf0083532b2d7058b194410bd32386a7f07d3 /web/share/js/login | |
parent | ad97aecaf4d043c59d018310b4d8f4852d30b6e0 (diff) |
using js modules
Diffstat (limited to 'web/share/js/login')
-rw-r--r-- | web/share/js/login/main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js index cd0746fc..3de2bf41 100644 --- a/web/share/js/login/main.js +++ b/web/share/js/login/main.js @@ -20,11 +20,14 @@ *****************************************************************************/ -var wm; +import {tools, $} from "../tools.js"; +import {checkBrowser} from "../bb.js"; +import {wm, initWindowManager} from "../wm.js"; -function main() { + +export function main() { if (checkBrowser()) { - wm = new WindowManager(); + initWindowManager(); tools.setOnClick($("login-button"), __login); $("user-input").onkeyup = $("passwd-input").onkeyup = function(event) { |