diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-25 15:41:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-25 15:41:05 -0800 |
commit | 74e244046b058134f3e777ba3e2b0bc0166f6b54 (patch) | |
tree | fd18e0f3fc73c5d70a12895a0f0c61f9e0a0f2ff /src | |
parent | 7904517df3a5b85fedb735f3888b1bafad3c2d43 (diff) | |
parent | 5bf4d65b99039a8bad17d042bf9b8555c42d824a (diff) |
Merge branch 'NiCoX' of github.com:patchanka/emscripten into incoming
Conflicts:
AUTHORS
Diffstat (limited to 'src')
-rw-r--r-- | src/library_openal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_openal.js b/src/library_openal.js index ac49fe95..bdbb2dca 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -174,8 +174,8 @@ var LibraryOpenAL = { }, alcOpenDevice: function(deviceName) { - if (typeof(AudioContext) == "function" || - typeof(webkitAudioContext) == "function") { + if (typeof(AudioContext) !== "undefined" || + typeof(webkitAudioContext) !== "undefined") { return 1; // non-null pointer -- we just simulate one device } else { return 0; |