@vbotma/sdk 3.3.6 → 3.3.7
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/dts/host-features/Link/HostLink.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1367,7 +1367,7 @@ const _s = /* @__PURE__ */ hs(), En = /* @__PURE__ */ h(_s);
|
|
|
1367
1367
|
function bs({ postEvent: n, version: e, ...s }) {
|
|
1368
1368
|
return A((r) => {
|
|
1369
1369
|
const i = r.toString();
|
|
1370
|
-
return i.match(/^https:\/\/vbot\.vn\/.+/) ? te("
|
|
1370
|
+
return i.match(/^https:\/\/vbot\.vn\/.+/) ? te("web_app_open_vb_link", P(e)) ? (r = new URL(r), n("web_app_open_vb_link", { path_full: r.pathname + r.search })) : (window.location.href = i, m.right(void 0)) : m.left(new Q(`"${i}" is invalid URL`));
|
|
1371
1371
|
}, { ...s, returns: "either" });
|
|
1372
1372
|
}
|
|
1373
1373
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -4323,10 +4323,10 @@ class Wr {
|
|
|
4323
4323
|
});
|
|
4324
4324
|
}
|
|
4325
4325
|
/**
|
|
4326
|
-
* Listens to '
|
|
4326
|
+
* Listens to 'web_app_open_vb_link' methods calls from Mini App.
|
|
4327
4327
|
*/
|
|
4328
4328
|
onOpenTgLink(e) {
|
|
4329
|
-
return d().on("
|
|
4329
|
+
return d().on("web_app_open_vb_link", (r) => {
|
|
4330
4330
|
r && e(r);
|
|
4331
4331
|
});
|
|
4332
4332
|
}
|