From 6c8c756b0aa8391178c0504722117f2333836667 Mon Sep 17 00:00:00 2001 From: n0099 Date: Tue, 7 Jun 2022 19:02:13 +0800 Subject: [PATCH] feat: optimising JS initialisation methods (#516) --- assets/js/kratos.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/js/kratos.js b/assets/js/kratos.js index 943858c..d2b3524 100644 --- a/assets/js/kratos.js +++ b/assets/js/kratos.js @@ -171,7 +171,7 @@ }) } - $(function () { + window.initKratos = function () { accordionConfig() navbarConfig() tooltipConfig() @@ -183,7 +183,8 @@ donateConfig() consoleConfig() lightGalleryConfig() - }) + }; + $(window.initKratos); })() function grin(tag) {