AudioObj = new Audio;
will return "Audio is not definied"
I also tried the classic fix:
var audio = require("audio");
but with no luck. I could add audio playback in some other part of the extension than in main.js
, like some content script where it works, but maybe there is a simpler and elegant solution.