From 6c701fd83b71e018453820ed4600c31925e80e16 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sun, 4 Jul 2021 17:42:49 +0200 Subject: [PATCH] Disable iframe if Tridactyl is disabled --- src/content/commandline_content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/commandline_content.ts b/src/content/commandline_content.ts index 86ec5b43..2b4276a5 100644 --- a/src/content/commandline_content.ts +++ b/src/content/commandline_content.ts @@ -34,7 +34,8 @@ let enabled = false /** Initialise the cmdline_iframe element unless the window location is included in a value of config/noiframe */ async function init() { const noiframe = await config.getAsync("noiframe") - if (noiframe === "false" && !enabled) { + const notridactyl = await config.getAsync("disable") + if (noiframe === "false" && notridactyl !== "true" && !enabled) { hide() document.documentElement.appendChild(cmdline_iframe) enabled = true