Skip to content

Commit

Permalink
fix: 修复变量使用错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
deboyblog committed Jul 8, 2020
1 parent 18e0f2a commit 4e73b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue-wechat-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
iframe.style.display = 'none'
// 替换成站标favicon路径或者任意存在的较小的图片即可,支付宝小程序引用默认空白的base64图片会有安全警告
var _img = /alipay/.test(mobile) ? img : (img || 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7');
img && iframe.setAttribute('src', _img)
_img && iframe.setAttribute('src', _img)
var iframeCallback = function () {
setTimeout(function () {
iframe.removeEventListener('load', iframeCallback)
Expand Down

0 comments on commit 4e73b8c

Please sign in to comment.