diff options
Diffstat (limited to 'src/proxyWorker.js')
-rw-r--r-- | src/proxyWorker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js index b542ff1d..571a5ba1 100644 --- a/src/proxyWorker.js +++ b/src/proxyWorker.js @@ -114,6 +114,17 @@ document.styleSheets = [{ } }]; +function Audio() { + Runtime.warnOnce('faking Audio elements, no actual sound will play'); +} + +Audio.prototype.play = function(){}; +Audio.prototype.pause = function(){}; + +Audio.prototype.cloneNode = function() { + return new Audio; +} + if (typeof console === 'undefined') { var console = { log: function(x) { |