精简eslinet

This commit is contained in:
Harvey Zack committed 2019-08-08 19:09:22 +08:00
1 parent fba16c2432
commit 6fb1b0eb6e
7 files changed
+14 -40

No files matched your search

+2 -2
View File
@@ -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;
});
}
},
+1 -1
View File
@@ -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;
}
},
});