msc-any-pip
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -294,3 +294,3 @@ import { _wcl } from './common-lib.js'; | ||
if (!children.length) { | ||
if (!children.length || !window?.documentPictureInPicture) { | ||
return; | ||
@@ -333,2 +333,6 @@ } | ||
} | ||
requestPictureInPicture() { | ||
this.#nodes.trigger.click(); | ||
} | ||
} | ||
@@ -335,0 +339,0 @@ |
{ | ||
"name": "msc-any-pip", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Imaging what if we can let anything Picture-in-Picture (not only <video />) ?! Here comes <msc-any-pip /> to let it dream comes true. <msc-any-pip /> apply Document Picture-in-Picture API to given elements have Picture-in-Picture feature.", | ||
@@ -5,0 +5,0 @@ "main": "index.html", |
@@ -140,2 +140,8 @@ # msc-any-pip | ||
## Mathod | ||
| Mathod Signature | Description | | ||
| ----------- | ----------- | | ||
| requestPictureInPicture | Request <msc-any-pip /> turn in Document Picture-in-Picture mode. | | ||
## Events | ||
@@ -142,0 +148,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58991
1239
159