@lvce-editor/ports-view 0.7.1 → 0.7.2

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.
@@ -1063,13 +1063,6 @@ const showContextMenu2 = async (uid, menuId, x, y, args) => {
1063
1063
  const writeClipBoardText = async text => {
1064
1064
  await invoke('ClipBoard.writeText', /* text */text);
1065
1065
  };
1066
- const openUri = async (uri, focus, options) => {
1067
- await invoke('Main.openUri', {
1068
- ...options,
1069
- focus,
1070
- uri
1071
- });
1072
- };
1073
1066
 
1074
1067
  const toCommandId = key => {
1075
1068
  const dotIndex = key.indexOf('.');
@@ -2152,7 +2145,9 @@ const openAddress = async (state, portNumber) => {
2152
2145
  if (!port || !port.forwardedAddress) {
2153
2146
  return state;
2154
2147
  }
2155
- await openUri(getAddressUrl(port.forwardedAddress));
2148
+ const url = getAddressUrl(port.forwardedAddress);
2149
+ await invoke('Layout.showPreview', 'simple-browser://');
2150
+ await invoke('SimpleBrowser.openOrRevealTab', url);
2156
2151
  return state;
2157
2152
  };
2158
2153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/ports-view",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Ports View Worker",
5
5
  "repository": {
6
6
  "type": "git",