From b778e38c2b94772e5ac7b06db7c2f5dba098e284 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 4 Jul 2022 17:06:06 -0400 Subject: [PATCH] fix: move call to `ajaxify.parseData` out to root level --- public/src/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/src/app.js b/public/src/app.js index 79d4c90ccb..6560b911c1 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -23,10 +23,7 @@ app.isFocused = true; app.currentRoom = null; app.widgets = {}; app.flags = {}; - app.onDomReady = function () { - document.addEventListener('DOMContentLoaded', ajaxify.parseData); - $(document).ready(async function () { if (app.user.timeagoCode && app.user.timeagoCode !== 'en') { await import(/* webpackChunkName: "timeago/[request]" */ 'timeago/locales/jquery.timeago.' + app.user.timeagoCode); @@ -35,6 +32,7 @@ app.onDomReady = function () { }); }; +document.addEventListener('DOMContentLoaded', ajaxify.parseData); (function () { let appLoaded = false;