electron/spec/fixtures/module/preload-context.js
PalmerAL ffc15e02a6 fix: add native function to create preload script (#13032)
* add native function to create preload script

* add tests

* fix formatting

* fix tests

* rerun CI
2018-07-13 11:17:11 +09:00

10 lines
208 B
JavaScript

var test = 'test' // eslint-disable-line
const types = {
require: typeof require,
electron: typeof electron,
window: typeof window,
localVar: typeof window.test
}
console.log(JSON.stringify(types))