mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-14 05:59:15 +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(
|
var preloader = document.getElementsByClassName(
|
||||||
'terminal_preloader'
|
'terminal_preloader'
|
||||||
)[0];
|
)[0];
|
||||||
preloader.parentNode.removeChild(preloader);
|
if (preloader) {
|
||||||
|
preloader.parentNode.removeChild(preloader);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
window.onscroll = null;
|
window.onscroll = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user