mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 09:01:39 -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 */
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue