Skip to content

Commit

Permalink
1.17.4
Browse files Browse the repository at this point in the history
Fixed #2132 Frontend UI must be created after document.body is ready in Firefox
  • Loading branch information
brookhong committed Nov 10, 2024
1 parent 21f888b commit 56ccb7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Surfingkeys",
"version": "1.17.3",
"version": "1.17.4",
"description": "Map your keys for web surfing, expand your browser with javascript and keyboard.",
"main": "background.js",
"directories": {
Expand Down
3 changes: 2 additions & 1 deletion src/content_scripts/front.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ function createFront(insert, normal, hints, visual, browser) {
} else {
if (!frontendPromise) {
// no need to create frontend iframe if the action is to hide key stroke
if (args.action === "hideKeystroke") {
// and frontend UI must be created after document.body is ready(#2132)
if (args.action === "hideKeystroke" || document.body === null) {
return;
}
newFrontEnd();
Expand Down

0 comments on commit 56ccb7f

Please sign in to comment.