RolandJansen / intermix

Typescript/Javascript framework for building sequencer-based audio apps
GNU Lesser General Public License v3.0
6 stars 0 forks source link

core.js: check if we're running on node.js #23

Closed RolandJansen closed 8 years ago

RolandJansen commented 8 years ago

If we're running on node.js throw error, use polyfill or do something else.

RolandJansen commented 8 years ago

Only solution would be to check for the 'window' object but that's pointless because it would throw anyway if the object is not there. Additionally we're testing for window.AudioContext.