Fixes #3603. Allow browser context menu

This commit is contained in:
Michael Tintiuc 2020-02-02 01:36:47 +02:00 committed by Sean Yesmunt
parent d191be8771
commit 8ec2032c7a

View file

@ -119,6 +119,8 @@ export function openCopyLinkMenu(text, event) {
// Block context menu // Block context menu
export function stopContextMenu(event) { export function stopContextMenu(event) {
if (navigator.userAgent.toLowerCase().indexOf(' electron/') > -1) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
}
} }