tweak javascript a bit

This commit is contained in:
Rhiannon Morris 2020-07-21 10:56:55 +02:00
parent 23f36bedf2
commit c1dda140bc

View file

@ -1,5 +1,7 @@
'use strict'; 'use strict';
(function() {
function defined(x) { function defined(x) {
return x !== null && typeof x !== 'undefined'; return x !== null && typeof x !== 'undefined';
} }
@ -53,4 +55,6 @@ function setup() {
} }
} }
window.onload = setup; window.addEventListener('load', setup);
})();