Aliasing toggle button (#1132)

This commit is contained in:
Vishal
2021-08-26 21:14:20 +05:30
committed by GitHub
parent db1a5138e6
commit 6b08cd2355
4 changed files with 71 additions and 12 deletions

View File

@@ -14,6 +14,11 @@
import * as WebCodecs from '../util/web-codecs';
import { drawableToImageData } from './canvas';
/** If render engine is Safari */
export const isSafari =
/Safari\//.test(navigator.userAgent) &&
!/Chrom(e|ium)\//.test(navigator.userAgent);
/**
* Compare two objects, returning a boolean indicating if
* they have the same properties and strictly equal values.
@@ -295,7 +300,3 @@ export async function abortable<T>(
}),
]);
}
export const isSafari =
/Safari\//.test(navigator.userAgent) &&
!/Chrom(e|ium)\//.test(navigator.userAgent);