mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
9 lines
277 B
JavaScript
9 lines
277 B
JavaScript
define([], function() {
|
|
return function(base) {
|
|
var supportsAudioApi = !!(base.AudioContext || base.webkitAudioContext);
|
|
var supportsCanvas = !!(base.document.createElement('canvas').getContext);
|
|
|
|
this.isCompatible = supportsAudioApi && supportsCanvas;
|
|
};
|
|
});
|
|
|