浏览代码

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);
   }
 }