You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Desktop: Fixes #3287: Disable middle-clicking external URLs, as they would open inside the application
This commit is contained in:
@@ -419,6 +419,12 @@
|
||||
updateBodyHeight();
|
||||
}));
|
||||
|
||||
// Prevent middle-click as that would open the URL in an Electron window
|
||||
// https://github.com/laurent22/joplin/issues/3287
|
||||
window.addEventListener('auxclick', webviewLib.logEnabledEventHandler((event) => {
|
||||
event.preventDefault();
|
||||
}));
|
||||
|
||||
updateBodyHeight();
|
||||
} catch (error) {
|
||||
ipcProxySendToHost('error:' + JSON.stringify(webviewLib.cloneError(error)));
|
||||
|
Reference in New Issue
Block a user