@wailsio/runtime 3.0.0-alpha.5 → 3.0.0-alpha.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/wml.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wailsio/runtime",
3
- "version": "3.0.0-alpha.5",
3
+ "version": "3.0.0-alpha.6",
4
4
  "description": "Wails Runtime",
5
5
  "main": "index.js",
6
6
  "repository": {
package/wml.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import {Emit, WailsEvent} from "./events";
3
3
  import {Question} from "./dialogs";
4
4
  import {WindowMethods, Get} from "./window";
5
+ import {OpenURL} from "./browser";
5
6
 
6
7
  /**
7
8
  * Sends an event with the given name and optional data.
@@ -119,12 +120,12 @@ function addWMLOpenBrowserListener() {
119
120
  if (confirm) {
120
121
  Question({Title: "Confirm", Message:confirm, Buttons:[{Label:"Yes"},{Label:"No", IsDefault:true}]}).then(function (result) {
121
122
  if (result !== "No") {
122
- void wails.Browser.OpenURL(url);
123
+ void OpenURL(url);
123
124
  }
124
125
  });
125
126
  return;
126
127
  }
127
- void wails.Browser.OpenURL(url);
128
+ void OpenURL(url);
128
129
  };
129
130
 
130
131
  // Remove existing listeners