瀏覽代碼

ref: move fn call

Sv443 4 月之前
父節點
當前提交
ab5327bce0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/menu/menu_old.ts

+ 2 - 2
src/menu/menu_old.ts

@@ -926,13 +926,13 @@ export async function openCfgMenu() {
   emitInterface("bytm:dialogOpened", undefined as unknown as BytmDialog);
   emitInterface("bytm:dialogOpened:cfg-menu" as "bytm:dialogOpened:id", undefined as unknown as BytmDialog);
 
-  checkToggleScrollIndicator();
-
   if(!menuBg)
     return warn("Couldn't open config menu because background element couldn't be found. The config menu is considered open but might still be closed. In this case please reload the page. If the issue persists, please create an issue on GitHub.");
 
   menuBg.style.visibility = "visible";
   menuBg.style.display = "block";
+
+  checkToggleScrollIndicator();
 }
 
 //#region chk scroll indicator