mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
精简eslinet
This commit is contained in:
1 parent
fba16c2432
commit
6fb1b0eb6e
7 files changed
+14
-40
No files matched your search
@@ -17,12 +17,12 @@ function nativePip(art, player) {
|
||||
if (value) {
|
||||
$video.requestPictureInPicture().catch(error => {
|
||||
notice.show(error, true, 3000);
|
||||
console.warn(error);
|
||||
throw error;
|
||||
});
|
||||
} else {
|
||||
document.exitPictureInPicture().catch(error => {
|
||||
notice.show(error, true, 3000);
|
||||
console.warn(error);
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function playMix(art, player) {
|
||||
if (promise !== undefined) {
|
||||
promise.then().catch(err => {
|
||||
notice.show(err, true, 3000);
|
||||
console.warn(err);
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,7 @@ export default function screenshotMix(art, player) {
|
||||
return canvas.toDataURL('image/png');
|
||||
} catch (error) {
|
||||
notice.show(error);
|
||||
console.warn(error);
|
||||
return null;
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user