mirror of
https://github.com/koel/koel
synced 2024-12-20 17:43:36 +00:00
10 lines
377 B
TypeScript
10 lines
377 B
TypeScript
/**
|
|
* Check if AudioContext is supported by the current browser.
|
|
*/
|
|
export const isAudioContextSupported = process.env.NODE_ENV !== 'test'
|
|
|
|
/**
|
|
* Checks if the browser supports reading (and thus uploading) a whole directory.
|
|
*/
|
|
export const isDirectoryReadingSupported = window.DataTransferItem &&
|
|
typeof window.DataTransferItem.prototype.webkitGetAsEntry === 'function'
|