Skip to content

Commit 56ccb7f

Browse files
committed
1.17.4
Fixed #2132 Frontend UI must be created after document.body is ready in Firefox
1 parent 21f888b commit 56ccb7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Surfingkeys",
3-
"version": "1.17.3",
3+
"version": "1.17.4",
44
"description": "Map your keys for web surfing, expand your browser with javascript and keyboard.",
55
"main": "background.js",
66
"directories": {

src/content_scripts/front.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ function createFront(insert, normal, hints, visual, browser) {
5555
} else {
5656
if (!frontendPromise) {
5757
// no need to create frontend iframe if the action is to hide key stroke
58-
if (args.action === "hideKeystroke") {
58+
// and frontend UI must be created after document.body is ready(#2132)
59+
if (args.action === "hideKeystroke" || document.body === null) {
5960
return;
6061
}
6162
newFrontEnd();

0 commit comments

Comments
 (0)