Skip to content

Commit

Permalink
fix: canvas local image(chrome 84)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Oct 10, 2020
1 parent dd2ae83 commit 00579e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/view/components/canvas/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ export default {
return
}
}
// Chrome85+ 本地路径
if (src.indexOf('file://') === 0 && navigator.vendor === 'Google Inc.' && Promise.any) {
// Chrome84+ 本地路径
if (src.indexOf('file://') === 0 && navigator.vendor === 'Google Inc.' && 'wakeLock' in navigator) {
image.crossOrigin = 'anonymous'
}
}
Expand Down

0 comments on commit 00579e3

Please sign in to comment.