update sw.js

This commit is contained in:
Harvey committed 2022-04-29 17:43:20 +08:00
1 parent b53deb5ad8
commit 227268ecda
12 files changed
+61 -114

No files matched your search

+2
View File
@@ -15,6 +15,7 @@ function nativePip(art) {
},
set(value) {
if (value) {
art.normalSize = 'pip';
$video.requestPictureInPicture().catch((err) => {
notice.show = err;
throw err;
@@ -48,6 +49,7 @@ function webkitPip(art) {
},
set(value) {
if (value) {
art.normalSize = 'pip';
$video.webkitSetPresentationMode('picture-in-picture');
art.emit('pip', true);
} else {