提交 00579e37 编写于 作者: Q qiang

fix: canvas local image(chrome 84)

上级 dd2ae831
......@@ -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'
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册