diff --git a/package.json b/package.json index 87714930..a05eb0a9 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/content_scripts/front.js b/src/content_scripts/front.js index c37aef4d..c056adfc 100644 --- a/src/content_scripts/front.js +++ b/src/content_scripts/front.js @@ -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();