@taole/dev-helper 0.0.24 → 0.0.25
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.
|
@@ -56,10 +56,11 @@
|
|
|
56
56
|
this.shadowRoot.appendChild(this._template.content);
|
|
57
57
|
console.log('open-diandian: wx-open-launch-app appended');
|
|
58
58
|
// 监听打开app失败的情况,跳转fallback链接
|
|
59
|
-
this._openAppTag.addEventListener('error',
|
|
59
|
+
this._openAppTag.addEventListener('error', (e)=>{
|
|
60
60
|
var tmplnk = document.createElement("a");
|
|
61
61
|
tmplnk.href = this._alink_fallback;
|
|
62
62
|
tmplnk.click();
|
|
63
|
+
console.log('open-diandian: wx-open-launch-app error',this._alink_fallback);
|
|
63
64
|
});
|
|
64
65
|
} else {
|
|
65
66
|
this._updateTagAttr();
|
package/open-diandian/index.js
CHANGED
|
@@ -50,10 +50,11 @@ function defineTag() {
|
|
|
50
50
|
this.shadowRoot.appendChild(this._template.content);
|
|
51
51
|
console.log('open-diandian: wx-open-launch-app appended');
|
|
52
52
|
// 监听打开app失败的情况,跳转fallback链接
|
|
53
|
-
this._openAppTag.addEventListener('error',
|
|
53
|
+
this._openAppTag.addEventListener('error', (e)=>{
|
|
54
54
|
var tmplnk = document.createElement("a");
|
|
55
55
|
tmplnk.href = this._alink_fallback;
|
|
56
56
|
tmplnk.click();
|
|
57
|
+
console.log('open-diandian: wx-open-launch-app error',this._alink_fallback);
|
|
57
58
|
});
|
|
58
59
|
} else {
|
|
59
60
|
this._updateTagAttr();
|