Browse Source

_ready_event is now global

sisyphus
JezerM 4 years ago
parent
commit
4d9afa80ca
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 8
      themes/_vendor/js/mock.js

8
themes/_vendor/js/mock.js vendored

@ -793,8 +793,8 @@ class ThemeUtils {
return context; return context;
} }
dirlist() { dirlist(path, noDir, callback) {
return [] callback([])
} }
/** /**
@ -861,8 +861,8 @@ new ThemeUtils();
new GreeterConfig(); new GreeterConfig();
new Greeter(); new Greeter();
const GreeterReady = new Event("GreeterReady") window._ready_event = new Event("GreeterReady")
setTimeout(() => { setTimeout(() => {
window.dispatchEvent(GreeterReady) window.dispatchEvent(_ready_event)
}, 1000) }, 1000)

Loading…
Cancel
Save