Created
August 2, 2017 18:57
-
-
Save meandavejustice/d2a64e18aa5b6caa496bc2f73650b364 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadIntoWindow: function (aDOMWindow) { | |
if (!aDOMWindow) return; | |
aDOMWindow.addEventListener('contextmenu', ev => { | |
console.log('gContextMenu', ev.mCurrentBrowser.ownerGlobal.gContextMenu); | |
console.log('oncontextmenu', ev, ev.mCurrentBrowser.ownerGlobal.gContextMenu.target); | |
contextMenuOptions(aDOMWindow); | |
}); | |
// aDOMWindow.document.oncontextmenu = function(ev) { | |
// console.log('oncontextmenu', ev); | |
// contextMenuOptions(aDOMWindow); | |
// }; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment