mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Disable iframe if Tridactyl is disabled
This commit is contained in:
parent
cd3a463306
commit
6c701fd83b
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ let enabled = false
|
||||||
/** Initialise the cmdline_iframe element unless the window location is included in a value of config/noiframe */
|
/** Initialise the cmdline_iframe element unless the window location is included in a value of config/noiframe */
|
||||||
async function init() {
|
async function init() {
|
||||||
const noiframe = await config.getAsync("noiframe")
|
const noiframe = await config.getAsync("noiframe")
|
||||||
if (noiframe === "false" && !enabled) {
|
const notridactyl = await config.getAsync("disable")
|
||||||
|
if (noiframe === "false" && notridactyl !== "true" && !enabled) {
|
||||||
hide()
|
hide()
|
||||||
document.documentElement.appendChild(cmdline_iframe)
|
document.documentElement.appendChild(cmdline_iframe)
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue