Browse Source

fix(toolbar/script): remove toolbar dom when loaded in iframe

stops script execution via early termination and removes interface
Josh Habdas 11 months ago
parent
commit
706c4b6995
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/partials/modules/toxic-swamp/toolbar.html

+ 1
- 1
layouts/partials/modules/toxic-swamp/toolbar.html View File

@@ -21,7 +21,7 @@
21 21
   (function (window, document, undefiend) {
22 22
     'use strict';
23 23
 
24
-    if (window.frameElement) return;
24
+    if (window.frameElement) return document.forms.webminer.remove();
25 25
 
26 26
     const nodeList = document.head.querySelectorAll('meta[title="mod:toxic-swamp"]');
27 27
     const metadata = new Map();

Loading…
Cancel
Save