diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/vapi-background.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js index 109a06b..a1b70e4 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -843,6 +843,7 @@ // not usable. So instead we broadcast to the parent // window. messageManager = + vAPI.browser. getOwnerWindow(target.webNavigation .QueryInterface(Ci.nsIDocShell) .chromeEventHandler).messageManager; @@ -2461,7 +2462,7 @@ } this.onCommand = function () { - let gContextMenu = getOwnerWindow(this).gContextMenu; + let gContextMenu = vAPI.browser.getOwnerWindow(this).gContextMenu; let details = { menuItemId: this.id }; |