@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.
- package/package.json +1 -1
- package/wml.js +3 -2
package/package.json
CHANGED
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
|
|
123
|
+
void OpenURL(url);
|
|
123
124
|
}
|
|
124
125
|
});
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
void
|
|
128
|
+
void OpenURL(url);
|
|
128
129
|
};
|
|
129
130
|
|
|
130
131
|
// Remove existing listeners
|