electron/lib/renderer/override.js

10 lines
335 B
JavaScript
Raw Normal View History

2016-03-25 19:57:17 +00:00
'use strict'
const {ipcRenderer} = require('electron')
2016-01-12 02:40:23 +00:00
const {guestInstanceId, openerId} = process
const hiddenPage = process.argv.includes('--hidden-page')
2017-03-19 08:41:20 +00:00
const usesNativeWindowOpen = process.argv.includes('--native-window-open')
2017-03-19 08:41:20 +00:00
require('./window-setup')(ipcRenderer, guestInstanceId, openerId, hiddenPage, usesNativeWindowOpen)