Disable iframe if Tridactyl is disabled

This commit is contained in:
Oliver Blanthorn 2021-07-04 17:42:49 +02:00
parent cd3a463306
commit 6c701fd83b
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -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