pear-electron 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gui/gui.js +5 -4
- package/package.json +1 -1
package/gui/gui.js
CHANGED
|
@@ -806,7 +806,8 @@ class GuiCtrl {
|
|
|
806
806
|
this.parentId = parentId
|
|
807
807
|
this.closed = true
|
|
808
808
|
this.id = null
|
|
809
|
-
this.
|
|
809
|
+
this.runtimeInfo = this.state.runtimeInfo
|
|
810
|
+
this.bridge = this.runtimeInfo?.bridge ?? null
|
|
810
811
|
this.entry = this.bridge === null ? entry : `${this.bridge}${entry}`
|
|
811
812
|
this.sessname = sessname
|
|
812
813
|
this.appkin = appkin
|
|
@@ -1019,7 +1020,7 @@ class Window extends GuiCtrl {
|
|
|
1019
1020
|
preload: require.main.filename,
|
|
1020
1021
|
...(decal === false ? { session } : {}),
|
|
1021
1022
|
partition: 'persist:pear',
|
|
1022
|
-
additionalArguments: [JSON.stringify({ ...this.state.config, isDecal: true })],
|
|
1023
|
+
additionalArguments: [JSON.stringify({ ...this.state.config, runtimeInfo: this.runtimeInfo, isDecal: true })],
|
|
1023
1024
|
autoHideMenuBar: true,
|
|
1024
1025
|
experimentalFeatures: true,
|
|
1025
1026
|
nodeIntegration: true,
|
|
@@ -1118,7 +1119,7 @@ class Window extends GuiCtrl {
|
|
|
1118
1119
|
webPreferences: {
|
|
1119
1120
|
preload: require.main.filename,
|
|
1120
1121
|
session,
|
|
1121
|
-
additionalArguments: [JSON.stringify({ ...this.state.config, parentWcId: this.win.webContents.id, decalled: true })],
|
|
1122
|
+
additionalArguments: [JSON.stringify({ ...this.state.config, runtimeInfo: this.runtimeInfo, parentWcId: this.win.webContents.id, decalled: true })],
|
|
1122
1123
|
autoHideMenuBar: true,
|
|
1123
1124
|
experimentalFeatures: true,
|
|
1124
1125
|
nodeIntegration: true,
|
|
@@ -1321,7 +1322,7 @@ class View extends GuiCtrl {
|
|
|
1321
1322
|
webPreferences: {
|
|
1322
1323
|
preload: require.main.filename,
|
|
1323
1324
|
session,
|
|
1324
|
-
additionalArguments: [JSON.stringify({ ...this.state.config, ...(options?.view?.config || options.config || {}), parentWcId: this.win.webContents.id })],
|
|
1325
|
+
additionalArguments: [JSON.stringify({ ...this.state.config, ...(options?.view?.config || options.config || {}), runtimeInfo: this.runtimeInfo, parentWcId: this.win.webContents.id })],
|
|
1325
1326
|
autoHideMenuBar: true,
|
|
1326
1327
|
experimentalFeatures: true,
|
|
1327
1328
|
nodeIntegration: true,
|