From b7aff88613a4018b89413166f82d27404321f3ac Mon Sep 17 00:00:00 2001 From: Izumiko Date: Tue, 21 Nov 2023 14:06:55 +0000 Subject: [PATCH] deploy: b9336bf2e67ab2e8fb4f3d8de10f8d0fae1dc347 --- ede.user.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ede.user.js b/ede.user.js index 954d752..97ca476 100644 --- a/ede.user.js +++ b/ede.user.js @@ -188,8 +188,6 @@ window.ede.heightRatio = tmpHeightRatio; showDebugInfo(`设置弹幕高度:${window.ede.heightRatio}`); window.localStorage.setItem('danmakuheight', window.ede.heightRatio.toString()); - const wrapper = document.getElementById('danmakuWrapper'); - wrapper && (wrapper.style.height = `${window.ede.heightRatio * 100}%`); //Reload reloadDanmaku('reload'); } catch (e) { @@ -309,8 +307,6 @@ return; } showDebugInfo('正在初始化UI'); - //Reload - reloadDanmaku('reload'); // 弹幕按钮容器div let uiEle = null; document.querySelectorAll(uiQueryStr).forEach(function (element) { @@ -717,6 +713,7 @@ wrapper.lastChild.style.opacity = window.ede.opacity; window.ede.danmaku.speed = window.ede.speed + wrapper.style.height = `${window.ede.heightRatio * 100}%`; window.ede.danmakuSwitch == 1 ? window.ede.danmaku.show() : window.ede.danmaku.hide(); if (window.ede.obResize) {