From 592921edc3290280a14db6479c886f5d64a50ee8 Mon Sep 17 00:00:00 2001 From: Tuxedo Takodachi Date: Wed, 15 Mar 2023 19:46:04 +0100 Subject: [PATCH] fix: remove duplicated file --- src/platform/$$.js | 2 ++ src/platform/$$.ts | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 src/platform/$$.ts diff --git a/src/platform/$$.js b/src/platform/$$.js index 6f9d9a825..1945af560 100644 --- a/src/platform/$$.js +++ b/src/platform/$$.js @@ -1,3 +1,5 @@ +import { d } from "../globals/globals"; + /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from diff --git a/src/platform/$$.ts b/src/platform/$$.ts deleted file mode 100644 index ef8ee6795..000000000 --- a/src/platform/$$.ts +++ /dev/null @@ -1,8 +0,0 @@ -const $$ = (selector: string, root?: HTMLElement) => { - if (!root) { - if (!document.body) return []; - root = document.body; - } - return Array.from(root.querySelectorAll(selector)); -}; -export default $$;