@raydiant/playlist-window-manager 0.22.1 → 0.23.0
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.
|
@@ -87,6 +87,7 @@ var BrowserViewRenderer = /** @class */ (function () {
|
|
|
87
87
|
view: new electron_1.BrowserView({
|
|
88
88
|
webPreferences: {
|
|
89
89
|
preload: path.join(__dirname, 'preload.js'),
|
|
90
|
+
contextIsolation: false,
|
|
90
91
|
},
|
|
91
92
|
}),
|
|
92
93
|
bounds: bounds || __assign(__assign({}, this.mainWindow.getBounds()), { x: 0, y: 0 }),
|
|
@@ -90,6 +90,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
90
90
|
hasShadow: this.opts.hasShadow,
|
|
91
91
|
webPreferences: {
|
|
92
92
|
preload: path.join(__dirname, 'preload.js'),
|
|
93
|
+
contextIsolation: false,
|
|
93
94
|
},
|
|
94
95
|
});
|
|
95
96
|
this.proxySettings = null;
|
|
@@ -118,6 +119,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
118
119
|
? this.createOrGetPooledBrowserView(windowId, {
|
|
119
120
|
webPreferences: {
|
|
120
121
|
preload: path.join(__dirname, 'preload.js'),
|
|
122
|
+
contextIsolation: false,
|
|
121
123
|
},
|
|
122
124
|
})
|
|
123
125
|
: this.createOrGetPooledBrowserWindow(windowId, {
|
|
@@ -132,6 +134,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
132
134
|
hasShadow: this.opts.hasShadow,
|
|
133
135
|
webPreferences: {
|
|
134
136
|
preload: path.join(__dirname, 'preload.js'),
|
|
137
|
+
contextIsolation: false,
|
|
135
138
|
},
|
|
136
139
|
}),
|
|
137
140
|
// If we are creating a child window and renderChildWindowsAsBrowserViews is false that means
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydiant/playlist-window-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Window manager for playlist playback.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@types/jschannel": "^1.0.1",
|
|
23
23
|
"@types/jest": "^24.0.15",
|
|
24
24
|
"@types/uuid": "8.3.0",
|
|
25
|
-
"electron": "
|
|
25
|
+
"electron": "28.1.2",
|
|
26
26
|
"jest": "^24.8.0",
|
|
27
27
|
"ts-jest": "^24.0.2",
|
|
28
28
|
"typescript": "^4.1.2"
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
ipcMain,
|
|
6
6
|
IpcMainEvent,
|
|
7
7
|
Event,
|
|
8
|
-
Details,
|
|
9
8
|
BrowserWindowConstructorOptions,
|
|
10
9
|
BrowserViewConstructorOptions,
|
|
10
|
+
RenderProcessGoneDetails,
|
|
11
11
|
} from 'electron';
|
|
12
12
|
import {
|
|
13
13
|
PresentationWindowRenderer,
|
|
@@ -32,7 +32,10 @@ interface BrowserWindowRendererWindow {
|
|
|
32
32
|
payload?: any
|
|
33
33
|
) => void;
|
|
34
34
|
unresponsiveCallback: () => void;
|
|
35
|
-
renderProcessGoneCallback: (
|
|
35
|
+
renderProcessGoneCallback: (
|
|
36
|
+
event: Event,
|
|
37
|
+
details: RenderProcessGoneDetails
|
|
38
|
+
) => void;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
interface BrowserWindowRendererOptions {
|
|
@@ -64,6 +67,7 @@ export default class BrowserWindowRenderer
|
|
|
64
67
|
hasShadow: this.opts.hasShadow,
|
|
65
68
|
webPreferences: {
|
|
66
69
|
preload: path.join(__dirname, 'preload.js'),
|
|
70
|
+
contextIsolation: false,
|
|
67
71
|
},
|
|
68
72
|
});
|
|
69
73
|
|
|
@@ -101,6 +105,7 @@ export default class BrowserWindowRenderer
|
|
|
101
105
|
? this.createOrGetPooledBrowserView(windowId, {
|
|
102
106
|
webPreferences: {
|
|
103
107
|
preload: path.join(__dirname, 'preload.js'),
|
|
108
|
+
contextIsolation: false,
|
|
104
109
|
},
|
|
105
110
|
})
|
|
106
111
|
: this.createOrGetPooledBrowserWindow(windowId, {
|
|
@@ -115,6 +120,7 @@ export default class BrowserWindowRenderer
|
|
|
115
120
|
hasShadow: this.opts.hasShadow,
|
|
116
121
|
webPreferences: {
|
|
117
122
|
preload: path.join(__dirname, 'preload.js'),
|
|
123
|
+
contextIsolation: false,
|
|
118
124
|
},
|
|
119
125
|
}),
|
|
120
126
|
// If we are creating a child window and renderChildWindowsAsBrowserViews is false that means
|
|
@@ -148,7 +154,10 @@ export default class BrowserWindowRenderer
|
|
|
148
154
|
);
|
|
149
155
|
},
|
|
150
156
|
|
|
151
|
-
renderProcessGoneCallback: (
|
|
157
|
+
renderProcessGoneCallback: (
|
|
158
|
+
_: Event,
|
|
159
|
+
details: RenderProcessGoneDetails
|
|
160
|
+
) => {
|
|
152
161
|
this.logger.error(
|
|
153
162
|
`Window received 'render-process-gone' event. Reason: ${details.reason}`,
|
|
154
163
|
{ windowId }
|
package/tasks/npm-publish.sh
CHANGED