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 $$;