fix: add native function to create preload script (#13032)
* add native function to create preload script * add tests * fix formatting * fix tests * rerun CI
This commit is contained in:
parent
e922b1733b
commit
ffc15e02a6
4 changed files with 36 additions and 4 deletions
10
spec/fixtures/module/preload-context.js
vendored
Normal file
10
spec/fixtures/module/preload-context.js
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
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))
|
Loading…
Add table
Add a link
Reference in a new issue