diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-17 19:28:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 19:28:42 -0500 |
commit | c875ca728f619c6e6bccbd13ceb90d898c59e53e (patch) | |
tree | edcf6862bd5d33eefea6c1a2af867b16d1040081 /ext/fg/js/content-script-main.js | |
parent | de5d3ec3ad608893a9db75229296094f85c200c3 (diff) |
Add support for frontend hotkeys; add scanSelectedText action (#1266)
* Add support for frontend hotkeys; add scanSelectedText action
* Remove unused global
* Remove duplicate hotkey handler script
Diffstat (limited to 'ext/fg/js/content-script-main.js')
-rw-r--r-- | ext/fg/js/content-script-main.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/fg/js/content-script-main.js b/ext/fg/js/content-script-main.js index 80a600e2..42f95e24 100644 --- a/ext/fg/js/content-script-main.js +++ b/ext/fg/js/content-script-main.js @@ -17,6 +17,7 @@ /* global * Frontend + * HotkeyHandler * PopupFactory * api */ @@ -31,6 +32,9 @@ throw new Error('Failed to get frameId'); } + const hotkeyHandler = new HotkeyHandler(); + hotkeyHandler.prepare(); + const popupFactory = new PopupFactory(frameId); popupFactory.prepare(); @@ -42,7 +46,8 @@ parentFrameId: null, useProxyPopup: false, pageType: 'web', - allowRootFramePopupProxy: true + allowRootFramePopupProxy: true, + hotkeyHandler }); await frontend.prepare(); |