electron/spec/fixtures/module/access-blink-apis.js

18 lines
371 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
window.delayed = true;
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();
};
2020-03-20 20:28:31 +00:00
const atPreload = global.getGlobalNames();
window.addEventListener('load', () => {
window.test = {
atPreload,
atLoad: global.getGlobalNames()
2020-03-20 20:28:31 +00:00
};
});