Skip to content

Commit

Permalink
Fix weird behavior displaying hints in contenteditable in https://pad…
Browse files Browse the repository at this point in the history
  • Loading branch information
david-tejada authored Jan 4, 2024
1 parent 5873083 commit 09b027c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/content/utils/isHintable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 09b027c

Please sign in to comment.