fix: hooks is sometimes undefined

isekai-main
Barış Soner Uşaklı 3 years ago
parent 62ac9a8bbb
commit 74aa12c95b

@ -593,11 +593,14 @@ app.cacheBuster = null;
}); });
let ajaxified = false; let ajaxified = false;
hooks.on('action:ajaxify.end', function () { require(['hooks'], function (hooks) {
if (!ajaxify.isCold()) { hooks.on('action:ajaxify.end', function () {
ajaxified = true; if (!ajaxify.isCold()) {
} ajaxified = true;
}
});
}); });
inputEl.on('focus', function () { inputEl.on('focus', function () {
mousedownOnResults = false; mousedownOnResults = false;
const query = inputEl.val(); const query = inputEl.val();

Loading…
Cancel
Save