Ver código fonte

fix: changelog close btn evt wrog

Sv443 1 ano atrás
pai
commit
0941c294f3
3 arquivos alterados com 3 adições e 3 exclusões
  1. 0 1
      src/features/layout.ts
  2. 2 1
      src/index.ts
  3. 1 1
      src/menu/menu_old.ts

+ 0 - 1
src/features/layout.ts

@@ -264,7 +264,6 @@ function setVolSliderSize() {
     return;
 
   addGlobalStyle(`\
-/* BetterYTM - set volume slider size */
 #bytm-vol-slider-cont tp-yt-paper-slider#volume-slider {
   width: ${size}px !important;
 }`);

+ 2 - 1
src/index.ts

@@ -71,7 +71,8 @@ async function init() {
 
   // init config
   try {
-    preInitLayout(await initConfig());
+    const ftConfig = await initConfig();
+    preInitLayout(ftConfig);
 
     if(getFeatures().disableBeforeUnloadPopup)
       disableBeforeUnload();

+ 1 - 1
src/menu/menu_old.ts

@@ -864,7 +864,7 @@ async function addChangelogMenu() {
   closeElem.src = await getResourceUrl("close");
   closeElem.title = "Click to close the menu";
   closeElem.addEventListener("click", (e) => {
-    closeImportMenu(e);
+    closeChangelogMenu(e);
     openMenu();
   });