8 lines
183 B
Plaintext
8 lines
183 B
Plaintext
|
var whenEnvIsLoaded = function(cb) {
|
||
|
if (typeof document !== 'undefined' && document !== null) {
|
||
|
document.addEventListener('DOMContentLoaded', cb);
|
||
|
} else {
|
||
|
cb();
|
||
|
}
|
||
|
}
|