mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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 () { | (function () { | ||||||
| 	let appLoaded = false; | 	let appLoaded = false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user