From 4c338aa83b884beae85a67eefd438ebbe5550945 Mon Sep 17 00:00:00 2001 From: kenianbei Date: Mon, 11 Nov 2013 13:53:06 -0800 Subject: [PATCH] Use createScriptProcessor rather than createJavaScriptNode for firefox compatibility. --- recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recorder.js b/recorder.js index 34275a14..2acf0d48 100644 --- a/recorder.js +++ b/recorder.js @@ -6,7 +6,7 @@ var config = cfg || {}; var bufferLen = config.bufferLen || 4096; this.context = source.context; - this.node = this.context.createJavaScriptNode(bufferLen, 2, 2); + this.node = this.context.createScriptProcessor(bufferLen, 2, 2); var worker = new Worker(config.workerPath || WORKER_PATH); worker.postMessage({ command: 'init',