Skip to content

Commit

Permalink
fix(runtime): Compatible with APIs starting with off #1511
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 1, 2020
1 parent 469359e commit ffbd6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/helpers/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ffbd6e0

Please sign in to comment.