From 80f52e3ea315735f7be88836e443f84c09c34e72 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 15 Mar 2024 21:04:37 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10621 --- app/src/menus/protyle.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 0ebb1773f..33006cb59 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -1466,11 +1466,15 @@ export const iframeMenu = (protyle: IProtyle, nodeElement: Element) => { page: "1", high_quality: "1", as_wide: "1", - allowfullscreen: "true" + allowfullscreen: "true", + autoplay: "0" }; // `//player.bilibili.com/player.html?aid=895154192&bvid=BV1NP4y1M72N&cid=562898119&page=1` // `https://www.bilibili.com/video/BV1ys411472E?t=3.4&p=4` new URL(value.startsWith("http") ? value : "https:" + value).search.split("&").forEach((item, index) => { + if (!item) { + return; + } if (index === 0) { item = item.substr(1); }