* fix set power level broken after sdk update * add media authentication hook * fix service worker types * fix service worker not working in dev mode * fix env mode check when registering sw
11 lines
303 B
TypeScript
11 lines
303 B
TypeScript
import { useSpecVersions } from './useSpecVersions';
|
|
|
|
export const useMediaAuthentication = (): boolean => {
|
|
const { versions } = useSpecVersions();
|
|
|
|
// Media authentication is introduced in spec version 1.11
|
|
const authenticatedMedia = versions.includes('v1.11');
|
|
|
|
return authenticatedMedia;
|
|
};
|