electron/spec/fixtures/module/preload-disable-remote.js

9 lines
179 B
JavaScript
Raw Normal View History

setImmediate(function () {
try {
2020-03-20 20:28:31 +00:00
const { remote } = require('electron');
console.log(JSON.stringify(typeof remote));
} catch (e) {
2020-03-20 20:28:31 +00:00
console.log(e.message);
}
2020-03-20 20:28:31 +00:00
});