mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-10 20:59:16 +00:00
prevent removing terminal preloader twice
This commit is contained in:
parent
39a077f03b
commit
162694586a
@ -46,7 +46,9 @@ define([
|
||||
var preloader = document.getElementsByClassName(
|
||||
'terminal_preloader'
|
||||
)[0];
|
||||
preloader.parentNode.removeChild(preloader);
|
||||
if (preloader) {
|
||||
preloader.parentNode.removeChild(preloader);
|
||||
}
|
||||
},
|
||||
componentWillUnmount: function() {
|
||||
window.onscroll = null;
|
||||
|
Loading…
Reference in New Issue
Block a user