mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -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",
|
"license": "MIT",
|
||||||
"name": "artplayer",
|
"name": "artplayer",
|
||||||
"version": "5.2.1",
|
"version": "5.2.2",
|
||||||
"main": "dist/artplayer.js",
|
"main": "dist/artplayer.js",
|
||||||
"legacy": "dist/artplayer.legacy.js",
|
"legacy": "dist/artplayer.legacy.js",
|
||||||
"types": "types/artplayer.d.ts",
|
"types": "types/artplayer.d.ts",
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ export function getRect(el) {
|
|||||||
export function loadImg(url, scale) {
|
export function loadImg(url, scale) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const img = new Image();
|
const img = new Image();
|
||||||
img.crossOrigin = 'Anonymous';
|
|
||||||
|
|
||||||
img.onload = function () {
|
img.onload = function () {
|
||||||
if (!scale || scale === 1) {
|
if (!scale || scale === 1) {
|
||||||
|
|||||||
Reference in new issue
Block a user