Skip to content

Commit

Permalink
chore: 更新版本号至 5.2.2,并移除图片加载中的跨域设置
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed Oct 28, 2024
1 parent 625f965 commit f685e1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/artplayer/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/artplayer/src/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f685e1a

Please sign in to comment.