now fixed context menu

This commit is contained in:
Andreas Fruhwirt
2025-04-05 20:05:31 +02:00
parent 3db9ce34f5
commit 27c5ca29cc
2 changed files with 3 additions and 10 deletions
-7
View File
@@ -11,13 +11,6 @@ window.addEventListener("load", async (event) => {
await navigator.mediaDevices.getUserMedia({ audio: true });
});
document.getElementById('recordbuttonimage').oncontextmenu = function(event) {
event.preventDefault();
event.stopPropagation(); // not necessary in my case, could leave in case stopImmediateProp isn't available?
event.stopImmediatePropagation();
return false;
};
function startButtonPulse(analyser) {
const button = document.querySelector('#recordbutton');