mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: race condition causing undefined ajaxify.data
This commit is contained in:
@@ -32,7 +32,11 @@ app.onDomReady = function () {
|
||||
});
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', ajaxify.parseData);
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', ajaxify.parseData);
|
||||
} else {
|
||||
ajaxify.parseData();
|
||||
}
|
||||
|
||||
(function () {
|
||||
let appLoaded = false;
|
||||
|
||||
Reference in New Issue
Block a user