Skip to content

Commit

Permalink
deploy: b9336bf
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed Nov 21, 2023
1 parent 5b4fb6f commit b7aff88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ede.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -309,8 +307,6 @@
return;
}
showDebugInfo('正在初始化UI');
//Reload
reloadDanmaku('reload');
// 弹幕按钮容器div
let uiEle = null;
document.querySelectorAll(uiQueryStr).forEach(function (element) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b7aff88

Please sign in to comment.