chore: 更新版本号至 5.2.2,并移除图片加载中的跨域设置

This commit is contained in:
Harvey Zack committed 2024-10-28 15:53:26 +08:00
1 parent 625f96534b
commit f685e1a7db
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"license": "MIT",
"name": "artplayer",
"version": "5.2.1",
"version": "5.2.2",
"main": "dist/artplayer.js",
"legacy": "dist/artplayer.legacy.js",
"types": "types/artplayer.d.ts",
-1
View File
@@ -121,7 +121,6 @@ export function getRect(el) {
export function loadImg(url, scale) {
return new Promise((resolve, reject) => {
const img = new Image();
img.crossOrigin = 'Anonymous';
img.onload = function () {
if (!scale || scale === 1) {