now fixed context menu
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user