Skip to content

Commit

Permalink
fix(App): 取消 iOS 真机 canvasPutImageData 压缩
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Dec 18, 2020
1 parent e4738da commit b21e2b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/service/api/context/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,8 @@ export function canvasPutImageData ({
invoke(callbackId, data)
})
let compressed
if (__PLATFORM__ === 'app-plus') {
// iOS真机非调试模式压缩太慢暂时排除
if (__PLATFORM__ === 'app-plus' && (plus.os.name !== 'iOS' || typeof __WEEX_DEVTOOL__ === 'boolean')) {
const pako = require('pako')
data = pako.deflateRaw(data, { to: 'string' })
compressed = true
Expand Down

0 comments on commit b21e2b1

Please sign in to comment.