zmp-sdk 2.16.6 → 2.16.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.
@@ -36740,7 +36740,7 @@
36740
36740
  }
36741
36741
  _ZJSBridgeProvider_bridge = new WeakMap();
36742
36742
 
36743
- var version = "2.16.6";
36743
+ var version = "2.16.7";
36744
36744
 
36745
36745
  class Basics {
36746
36746
  /**
@@ -40848,13 +40848,10 @@
40848
40848
  }
40849
40849
  createShortcut(object) {
40850
40850
  return __awaiter(this, void 0, void 0, function* () {
40851
+ const appInfo = yield getAppInfo(APP_ID, 0);
40851
40852
  const isIOS = checkPlatform().isIOS;
40852
- let iconURL = getMetaValue('og:image:url') || '';
40853
- iconURL = iconURL.replace(/^zbrowser?:/, '');
40854
- if (!(iconURL === null || iconURL === void 0 ? void 0 : iconURL.includes('https'))) {
40855
- iconURL = `https:${iconURL}`;
40856
- }
40857
- const title = document.title;
40853
+ const iconURL = appInfo.logoUrl || getMetaValue('og:image:url') || '';
40854
+ const title = appInfo.name || document.title;
40858
40855
  const searchParams = object.params
40859
40856
  ? new URLSearchParams(object.params)
40860
40857
  : new URLSearchParams();
package/dist/index.es.js CHANGED
@@ -36737,7 +36737,7 @@ class ZJSBridgeProvider {
36737
36737
  }
36738
36738
  _ZJSBridgeProvider_bridge = new WeakMap();
36739
36739
 
36740
- var version = "2.16.6";
36740
+ var version = "2.16.7";
36741
36741
 
36742
36742
  class Basics {
36743
36743
  /**
@@ -40845,13 +40845,10 @@ class SDKCreator {
40845
40845
  }
40846
40846
  createShortcut(object) {
40847
40847
  return __awaiter(this, void 0, void 0, function* () {
40848
+ const appInfo = yield getAppInfo(APP_ID, 0);
40848
40849
  const isIOS = checkPlatform().isIOS;
40849
- let iconURL = getMetaValue('og:image:url') || '';
40850
- iconURL = iconURL.replace(/^zbrowser?:/, '');
40851
- if (!(iconURL === null || iconURL === void 0 ? void 0 : iconURL.includes('https'))) {
40852
- iconURL = `https:${iconURL}`;
40853
- }
40854
- const title = document.title;
40850
+ const iconURL = appInfo.logoUrl || getMetaValue('og:image:url') || '';
40851
+ const title = appInfo.name || document.title;
40855
40852
  const searchParams = object.params
40856
40853
  ? new URLSearchParams(object.params)
40857
40854
  : new URLSearchParams();