fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/webdetector',
|
||||
version: '2.0.0',
|
||||
version: '2.0.1',
|
||||
description: 'detect different environments within the browser'
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ export type TWebPlatform = 'android' | 'ios' | 'windows' | 'mac' | 'linux' | 'un
|
||||
|
||||
export class Platform {
|
||||
public detectPlatform(): TWebPlatform {
|
||||
const userAgent = navigator?.userAgent?.toLowerCase();
|
||||
const userAgent = globalThis?.navigator?.userAgent?.toLowerCase();
|
||||
|
||||
if (!userAgent) {
|
||||
return 'unknown';
|
||||
|
Reference in New Issue
Block a user