UNPKG

three

Version:

JavaScript 3D library

26 lines (14 loc) 340 B
/** * @author mrdoob / http://mrdoob.com/ */ Object.defineProperty( THREE, 'AudioContext', { get: ( function () { var context; return function () { if ( context === undefined ) { context = new ( window.AudioContext || window.webkitAudioContext )(); } return context; }; } )() } );