2020-03-20 20:28:31 +00:00
|
|
|
window.delayed = true;
|
2018-09-24 22:40:15 +00:00
|
|
|
|
|
|
|
global.getGlobalNames = () => {
|
|
|
|
return Object.getOwnPropertyNames(global)
|
|
|
|
.filter(key => typeof global[key] === 'function')
|
|
|
|
.filter(key => key !== 'WebView')
|
2020-03-20 20:28:31 +00:00
|
|
|
.sort();
|
|
|
|
};
|
2018-09-24 22:40:15 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
const atPreload = global.getGlobalNames();
|
2018-09-24 22:40:15 +00:00
|
|
|
|
|
|
|
window.addEventListener('load', () => {
|
|
|
|
window.test = {
|
|
|
|
atPreload,
|
|
|
|
atLoad: global.getGlobalNames()
|
2020-03-20 20:28:31 +00:00
|
|
|
};
|
|
|
|
});
|