Skip to content

Commit 7d8349b

Browse files
authored
Update picture-in-picture.js
1 parent 70978a8 commit 7d8349b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

features/picture-in-picture/picture-in-picture.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export default async function ({ feature, console }) {
2+
const ALLOW_INTERACTIVITY = false
3+
24
await new Promise(async (resolve, reject) => {
35
(async () => {
46
const rem = await ScratchTools.waitForElement(".preview .inner .flex-row.action-buttons")
@@ -38,7 +40,8 @@ export default async function ({ feature, console }) {
3840

3941
let popup;
4042

41-
if (feature.settings.get("interactivity-PiP")) {
43+
// Code for allowing interactivity (not yet ready)
44+
if (ALLOW_INTERACTIVITY) {
4245
if (!"documentPictureInPicture" in window) console.error("Picture in Picture not supported")
4346

4447
let pipWindow

0 commit comments

Comments
 (0)