mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Fix #5143: skip iframe check if iframe will never load
Some checks failed
lint / lint (unit) (push) Has been cancelled
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled
Some checks failed
lint / lint (unit) (push) Has been cancelled
e2e / test (firefox, ubuntu) (push) Has been cancelled
e2e / test (firefox, windows) (push) Has been cancelled
e2e / test (firefoxesr, ubuntu) (push) Has been cancelled
lint / lint (lint) (push) Has been cancelled
lint / lint (mozilla) (push) Has been cancelled
Website / build (push) Has been cancelled
Website / deploy (push) Has been cancelled
This commit is contained in:
parent
c7e59eba10
commit
72be7ed9aa
|
|
@ -15,6 +15,7 @@ import * as gobblemode from "@src/parsers/gobblemode"
|
|||
import * as generic from "@src/parsers/genericmode"
|
||||
import * as nmode from "@src/parsers/nmode"
|
||||
import * as Messaging from "@src/lib/messaging";
|
||||
import * as config from "@src/lib/config"
|
||||
|
||||
const logger = new Logger("controller")
|
||||
|
||||
|
|
@ -103,9 +104,15 @@ class KeyCanceller {
|
|||
export const canceller = new KeyCanceller()
|
||||
|
||||
let commandlineFrameReadyToReceiveMessages = false
|
||||
Messaging.addListener("commandline_frame_ready_to_receive_messages", () => {
|
||||
logger.debug("Received commandline_frame_ready_to_receive_messages")
|
||||
commandlineFrameReadyToReceiveMessages = true
|
||||
config.getAsync("noiframe").then(noiframe => {
|
||||
if(noiframe === "true") {
|
||||
commandlineFrameReadyToReceiveMessages = true
|
||||
} else {
|
||||
Messaging.addListener("commandline_frame_ready_to_receive_messages", () => {
|
||||
logger.debug("Received commandline_frame_ready_to_receive_messages")
|
||||
commandlineFrameReadyToReceiveMessages = true
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
let mustBufferPageKeysForClInput = false
|
||||
|
|
|
|||
Loading…
Reference in a new issue