fix: acp dashboard sometimes not loading on cold load

v1.18.x
Barış Soner Uşaklı 4 years ago
parent edefac9645
commit fee782c436

@ -9,11 +9,17 @@
<footer class="footer">Copyright &copy; 2015 <a target="_blank" href="https://nodebb.org">NodeBB</a> by <a target="_blank" href="https://github.com/psychobunny">psychobunny</a>, <a href="https://github.com/julianlam" target="_blank">julianlam</a>, <a href="https://github.com/barisusakli" target="_blank">barisusakli</a> from <a target="_blank" href="http://www.designcreateplay.com">designcreateplay</a></footer> <footer class="footer">Copyright &copy; 2015 <a target="_blank" href="https://nodebb.org">NodeBB</a> by <a target="_blank" href="https://github.com/psychobunny">psychobunny</a>, <a href="https://github.com/julianlam" target="_blank">julianlam</a>, <a href="https://github.com/barisusakli" target="_blank">barisusakli</a> from <a target="_blank" href="http://www.designcreateplay.com">designcreateplay</a></footer>
</div> </div>
<script> <script>
window.addEventListener('DOMContentLoaded', function () { if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', prepareFooter);
} else {
prepareFooter();
}
function prepareFooter() {
$(document).ready(function () { $(document).ready(function () {
app.coldLoad(); app.coldLoad();
}); });
}); }
</script> </script>
</body> </body>
</html> </html>

Loading…
Cancel
Save