diff --git a/pgmanage/app/static/pgmanage_frontend/src/main.js b/pgmanage/app/static/pgmanage_frontend/src/main.js index 3af04ce98..b4da2fd7e 100644 --- a/pgmanage/app/static/pgmanage_frontend/src/main.js +++ b/pgmanage/app/static/pgmanage_frontend/src/main.js @@ -38,6 +38,15 @@ ace.config.setModuleUrl('ace/theme/omnidb_dark', omniDarkURL) axios.defaults.headers.common['X-CSRFToken'] = getCookie(v_csrf_cookie_name); +document.addEventListener('auxclick', function(event) { + if (event.button === 1) { + event.preventDefault(); + event.stopPropagation(); + event.stopImmediatePropagation(); + return false; + } +}); + settingsStore.getSettings().then(() => { const app = createApp(App); setupLogger(app);