mirror of
https://github.com/captbaritone/webamp.git
synced 2026-11-10 01:51:27 -10:00
7 lines
252 B
JavaScript
7 lines
252 B
JavaScript
module.exports = function(base) {
|
|
const supportsAudioApi = !!(base.AudioContext || base.webkitAudioContext);
|
|
const supportsCanvas = !!(base.document.createElement('canvas').getContext);
|
|
|
|
this.isCompatible = supportsAudioApi && supportsCanvas;
|
|
};
|