mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 11:56:15 -08:00
chore: 更新版本号至 5.2.2,并移除图片加载中的跨域设置
This commit is contained in:
1 parent
625f96534b
commit
f685e1a7db
2 files changed
+1
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user