audio-context-singleton
Advanced tools
Comparing version
@@ -26,3 +26,3 @@ /* global webkitAudioContext */ | ||
if (audioContext) { | ||
if (audioContext && audioContext.state !== 'closed') { | ||
audioContext.close().then(passNewContext); | ||
@@ -29,0 +29,0 @@ } else { |
{ | ||
"name": "audio-context-singleton", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "When you want to have an audioContext singleton but don't want to rewrite [this code](index.js), use this. Deals with browser differences in AudioContext and maintains the singleton.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5158
0.68%