if (typeof window !== 'undefined') {
// You now have access to `window`
}
if (typeof window !== 'undefined') {
// Boom
}
var currentUrl = '';
if (typeof window !== 'undefined') {
currentUrl = window.location.href;
}
if (typeof window !== 'undefined') {
window.onload = function afterWebPageLoad() {
setLoading(false);
}
}
setTimeout(function () {
setLoading(false);
}, 30000);