提交 ffbd6e07 编写于 作者: fxy060608's avatar fxy060608

fix(runtime): Compatible with APIs starting with off #1511

上级 469359e6
......@@ -16,7 +16,7 @@ const TASK_APIS = ['request', 'downloadFile', 'uploadFile', 'connectSocket']
const ASYNC_API = ['createBLEConnection']
const CALLBACK_API_RE = /^on/
const CALLBACK_API_RE = /^on|^off/
export function isContextApi (name) {
return CONTEXT_API_RE.test(name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册