@lvce-editor/main-process 6.34.0 → 6.35.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.
@@ -6505,13 +6505,12 @@ const detach = (webContents, listener) => {
6505
6505
  webContents.setWindowOpenHandler(null);
6506
6506
  };
6507
6507
  const handler = ({
6508
+ disposition,
6508
6509
  url
6509
6510
  }) => {
6510
- if (shouldOpenExternal(url)) {
6511
- void openExternal(url);
6512
- }
6511
+ const messages = shouldOpenExternal(url) ? [['handleWindowOpen', url, disposition]] : [];
6513
6512
  return {
6514
- messages: [],
6513
+ messages,
6515
6514
  result: {
6516
6515
  action: Deny
6517
6516
  }
@@ -7059,7 +7058,7 @@ const copyImageAt = (view, x, y) => {
7059
7058
  } = view;
7060
7059
  webContents.copyImageAt(x, y);
7061
7060
  };
7062
- const setFallThroughKeyBindings = fallthroughKeyBindings => {
7061
+ const setFallThroughKeyBindings = (_view, fallthroughKeyBindings) => {
7063
7062
  setFallthroughKeyBindings(fallthroughKeyBindings);
7064
7063
  };
7065
7064
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "6.34.0",
3
+ "version": "6.35.1",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "electron"