diff --git a/content_scripts/link_hints.js b/content_scripts/link_hints.js index a56ab3ff9..f473bf98c 100644 --- a/content_scripts/link_hints.js +++ b/content_scripts/link_hints.js @@ -1215,7 +1215,7 @@ var LocalHints = { class TypingProtector extends Mode { constructor(delay, callback) { super(); - super.init({ + this.init({ name: "hint/typing-protector", suppressAllKeyboardEvents: true, keydown: resetExitTimer, @@ -1236,7 +1236,7 @@ class TypingProtector extends Mode { class WaitForEnter extends Mode { constructor(callback) { super(); - super.init({ + this.init({ name: "hint/wait-for-enter", suppressAllKeyboardEvents: true, indicator: "Hit to proceed..." @@ -1259,7 +1259,7 @@ class WaitForEnter extends Mode { class HoverMode extends Mode { constructor(link) { super(); - super.init({name: "hover-mode", singleton: "hover-mode", exitOnEscape: true}); + this.init({name: "hover-mode", singleton: "hover-mode", exitOnEscape: true}); this.link = link; DomUtils.simulateHover(this.link); this.onExit(() => DomUtils.simulateUnhover(this.link));