mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Merge pull request #769 from glacambre/fix_focus_hijacking
dom.ts: Fix focus hijacking
This commit is contained in:
commit
283166e464
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ function hijackPageFocusFunction(): void {
|
|||
|
||||
let eval_str = `HTMLElement.prototype.focus = ((realFocus, ${exportedName}) => {
|
||||
return function (...args) {
|
||||
${exportedName}(this, args)
|
||||
realFocus.apply(this, args)
|
||||
}
|
||||
})(HTMLElement.prototype.focus, ${exportedName})`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue