@lvce-editor/main-process 6.14.0 → 6.14.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/dist/mainProcessMain.js +2 -33
- package/package.json +2 -2
package/dist/mainProcessMain.js
CHANGED
|
@@ -4066,7 +4066,6 @@ const PageTitleUpdated = 'page-title-updated';
|
|
|
4066
4066
|
const Destroyed = 'destroyed';
|
|
4067
4067
|
const BeforeInputEvent = 'before-input-event';
|
|
4068
4068
|
|
|
4069
|
-
const Allow = 'allow';
|
|
4070
4069
|
const Deny = 'deny';
|
|
4071
4070
|
|
|
4072
4071
|
const shouldOpenExternal = url => {
|
|
@@ -5900,9 +5899,6 @@ const ElectronBrowserViewEventListenerWillNavigate = {
|
|
|
5900
5899
|
key: key$1
|
|
5901
5900
|
};
|
|
5902
5901
|
|
|
5903
|
-
const BackgroundTab = 'background-tab';
|
|
5904
|
-
const NewWindow = 'new-window';
|
|
5905
|
-
|
|
5906
5902
|
const key = 'window-open';
|
|
5907
5903
|
const attach = (webContents, listener) => {
|
|
5908
5904
|
webContents.setWindowOpenHandler(listener);
|
|
@@ -5911,38 +5907,11 @@ const detach = (webContents, listener) => {
|
|
|
5911
5907
|
webContents.setWindowOpenHandler(null);
|
|
5912
5908
|
};
|
|
5913
5909
|
const handler = ({
|
|
5914
|
-
disposition,
|
|
5915
|
-
features,
|
|
5916
|
-
frameName,
|
|
5917
|
-
postBody,
|
|
5918
|
-
referrer,
|
|
5919
5910
|
url
|
|
5920
5911
|
}) => {
|
|
5921
|
-
if (url
|
|
5922
|
-
|
|
5923
|
-
messages: [],
|
|
5924
|
-
result: {
|
|
5925
|
-
action: Allow
|
|
5926
|
-
}
|
|
5927
|
-
};
|
|
5928
|
-
}
|
|
5929
|
-
if (disposition === BackgroundTab) {
|
|
5930
|
-
return {
|
|
5931
|
-
messages: [['handleWindowOpen', url]],
|
|
5932
|
-
result: {
|
|
5933
|
-
action: Deny
|
|
5934
|
-
}
|
|
5935
|
-
};
|
|
5936
|
-
}
|
|
5937
|
-
if (disposition === NewWindow) {
|
|
5938
|
-
return {
|
|
5939
|
-
messages: [],
|
|
5940
|
-
result: {
|
|
5941
|
-
action: Allow
|
|
5942
|
-
}
|
|
5943
|
-
};
|
|
5912
|
+
if (shouldOpenExternal(url)) {
|
|
5913
|
+
void openExternal(url);
|
|
5944
5914
|
}
|
|
5945
|
-
info(`[main-process] blocked popup for ${url}`);
|
|
5946
5915
|
return {
|
|
5947
5916
|
messages: [],
|
|
5948
5917
|
result: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/main-process",
|
|
3
|
-
"version": "6.14.
|
|
3
|
+
"version": "6.14.1",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"lvce-editor",
|
|
6
6
|
"electron"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"main": "dist/mainProcessMain.js",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"electron": "43.
|
|
17
|
+
"electron": "43.2.0"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=22"
|