aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/observe-dom.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/observe-dom.ts')
-rw-r--r--src/utils/observe-dom.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/utils/observe-dom.ts b/src/utils/observe-dom.ts
deleted file mode 100644
index 4a447a0..0000000
--- a/src/utils/observe-dom.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-export const observeDOM = (callback: () => boolean) => {
- const observer = new MutationObserver(() => {
- if (callback()) {
- observer.disconnect();
- }
- });
-
- observer.observe(document, {
- childList: true,
- subtree: true
- });
-};