mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Remove input track descriptors, add async getters on tracks for everything, deprecate old sync getters
This commit is contained in:
@@ -636,6 +636,7 @@ export const isWebKit = () => {
|
||||
return isWebKitCache = !!(
|
||||
typeof navigator !== 'undefined'
|
||||
&& (
|
||||
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
||||
navigator.vendor?.match(/apple/i)
|
||||
// Or, in workers:
|
||||
|| (/AppleWebKit/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent))
|
||||
@@ -661,6 +662,7 @@ export const isChromium = () => {
|
||||
|
||||
return isChromiumCache = !!(
|
||||
typeof navigator !== 'undefined'
|
||||
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
||||
&& (navigator.vendor?.includes('Google Inc') || /Chrome/.test(navigator.userAgent))
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user