tweak javascript a bit
This commit is contained in:
parent
23f36bedf2
commit
c1dda140bc
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
(function() {
|
||||
|
||||
function defined(x) {
|
||||
return x !== null && typeof x !== 'undefined';
|
||||
}
|
||||
|
@ -53,4 +55,6 @@ function setup() {
|
|||
}
|
||||
}
|
||||
|
||||
window.onload = setup;
|
||||
window.addEventListener('load', setup);
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue