From 4d9afa80ca2488bbc681387b208feacef0a1f41f Mon Sep 17 00:00:00 2001 From: JezerM Date: Mon, 12 Jul 2021 21:17:07 -0600 Subject: [PATCH] _ready_event is now global --- themes/_vendor/js/mock.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/_vendor/js/mock.js b/themes/_vendor/js/mock.js index 9002c56..457f778 100644 --- a/themes/_vendor/js/mock.js +++ b/themes/_vendor/js/mock.js @@ -793,8 +793,8 @@ class ThemeUtils { return context; } - dirlist() { - return [] + dirlist(path, noDir, callback) { + callback([]) } /** @@ -861,8 +861,8 @@ new ThemeUtils(); new GreeterConfig(); new Greeter(); -const GreeterReady = new Event("GreeterReady") +window._ready_event = new Event("GreeterReady") setTimeout(() => { - window.dispatchEvent(GreeterReady) + window.dispatchEvent(_ready_event) }, 1000)