From 09b027c2e2416586c1237c6b8d94e704c0c85fcb Mon Sep 17 00:00:00 2001 From: David Tejada Date: Thu, 4 Jan 2024 12:37:58 +0100 Subject: [PATCH] Fix weird behavior displaying hints in contenteditable in https://pad.cogneon.io/. Fixes #264 (#265) --- src/content/utils/isHintable.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/utils/isHintable.ts b/src/content/utils/isHintable.ts index 08761540..85781caa 100644 --- a/src/content/utils/isHintable.ts +++ b/src/content/utils/isHintable.ts @@ -85,6 +85,11 @@ export function isHintableExtra(target: Element): boolean { } export function isHintable(target: Element): boolean { + // Issue 264 + if (document.location.href === "https://pad.cogneon.io/static/empty.html") { + return false; + } + if ( getExtraHintsToggle() && (matchesHintableSelector(target) || isHintableExtra(target))