Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(taro-weapp): 兼容低基础库 #2786

Closed
wants to merge 1 commit into from

Conversation

lzane
Copy link

@lzane lzane commented Apr 16, 2019

兼容微信低版本基础库

修复之前调用Taro.getUpdateManager()会导致在低版本库的时候报错,因为低版本库wx.getUpdateManager为undefined。

修复之后可以直接使用

const updateManager = Taro.getUpdateManager();
if (typeof updateManager === 'undefined') {
   return;
}

@luckyadam
Copy link
Member

已经加上啦

@luckyadam luckyadam closed this Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants