From 01d6734069eafd9dec06dd3172e131b3d67241e6 Mon Sep 17 00:00:00 2001 From: Izumiko Date: Sun, 19 May 2024 16:00:13 +0000 Subject: [PATCH] deploy: 4c839a35a8f95218156dd63303525e4f1e1784ae --- ede.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ede.user.js b/ede.user.js index 5ac7dfa..7f337fd 100644 --- a/ede.user.js +++ b/ede.user.js @@ -3,7 +3,7 @@ // @description Jellyfin弹幕插件 // @namespace https://github.com/RyoLee // @author RyoLee -// @version 1.38 +// @version 1.39 // @copyright 2022, RyoLee (https://github.com/RyoLee) // @license MIT; https://raw.githubusercontent.com/Izumiko/jellyfin-danmaku/jellyfin/LICENSE // @icon https://github.githubassets.com/pinned-octocat.svg @@ -1000,8 +1000,8 @@ console.log('[Jellyfin-Danmaku] Video Removed'); window.ede.loading = false; document.getElementById('danmakuInfoTitle')?.remove(); - window.ede.danmaku?.destroy(); - document.getElementById('danmakuWrapper')?.remove(); + const wrapper = document.getElementById('danmakuWrapper'); + if (wrapper) wrapper.style.display = 'none'; return; } }