We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869fee7 commit ff31b42Copy full SHA for ff31b42
packages/util/src/environment.ts
@@ -173,6 +173,12 @@ export function isSafari(): boolean {
173
);
174
}
175
176
+export function isChrome(): boolean {
177
+ return (
178
+ !isNode() && !!navigator.userAgent && navigator.userAgent.includes('Chrome')
179
+ );
180
+}
181
+
182
/**
183
* This method checks if indexedDB is supported by current browser/service worker context
184
* @return true if indexedDB is supported by current browser/service worker context
0 commit comments