瀏覽代碼

fix: linter error

Sv443 3 周之前
父節點
當前提交
1f07eb254c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/dom.ts

+ 4 - 1
lib/dom.ts

@@ -102,7 +102,10 @@ export function openInNewTab(href: string, background?: boolean, additionalProps
     setTimeout(() => {
       try {
         openElem.remove();
-      } catch {}
+      }
+      catch {
+        void 0;
+      }
     }, 0);
   }
 }