@@ -60,10 +60,7 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
60
60
return ClientType . Browser ;
61
61
}
62
62
63
- /**
64
- * @deprecated Do not call this directly, use getDevice() instead
65
- */
66
- static isFirefox ( ) : boolean {
63
+ private static isFirefox ( ) : boolean {
67
64
return (
68
65
navigator . userAgent . indexOf ( " Firefox/" ) !== - 1 ||
69
66
navigator . userAgent . indexOf ( " Gecko/" ) !== - 1
@@ -74,9 +71,6 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
74
71
return this . getDevice ( ) === DeviceType . FirefoxExtension ;
75
72
}
76
73
77
- /**
78
- * @deprecated Do not call this directly, use getDevice() instead
79
- */
80
74
private static isChrome ( globalContext : Window | ServiceWorkerGlobalScope ) : boolean {
81
75
return globalContext . chrome && navigator . userAgent . indexOf ( " Chrome/" ) !== - 1 ;
82
76
}
@@ -85,9 +79,6 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
85
79
return this . getDevice ( ) === DeviceType . ChromeExtension ;
86
80
}
87
81
88
- /**
89
- * @deprecated Do not call this directly, use getDevice() instead
90
- */
91
82
private static isEdge ( ) : boolean {
92
83
return navigator . userAgent . indexOf ( " Edg/" ) !== - 1 ;
93
84
}
@@ -96,9 +87,6 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
96
87
return this . getDevice ( ) === DeviceType . EdgeExtension ;
97
88
}
98
89
99
- /**
100
- * @deprecated Do not call this directly, use getDevice() instead
101
- */
102
90
private static isOpera ( globalContext : Window | ServiceWorkerGlobalScope ) : boolean {
103
91
return (
104
92
! ! globalContext . opr ?. addons ||
@@ -111,9 +99,6 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
111
99
return this . getDevice ( ) === DeviceType . OperaExtension ;
112
100
}
113
101
114
- /**
115
- * @deprecated Do not call this directly, use getDevice() instead
116
- */
117
102
private static isVivaldi ( ) : boolean {
118
103
return navigator . userAgent . indexOf ( " Vivaldi/" ) !== - 1 ;
119
104
}
@@ -122,10 +107,7 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
122
107
return this . getDevice ( ) === DeviceType . VivaldiExtension ;
123
108
}
124
109
125
- /**
126
- * @deprecated Do not call this directly, use getDevice() instead
127
- */
128
- static isSafari ( globalContext : Window | ServiceWorkerGlobalScope ) : boolean {
110
+ private static isSafari ( globalContext : Window | ServiceWorkerGlobalScope ) : boolean {
129
111
// Opera masquerades as Safari, so make sure we're not there first
130
112
return (
131
113
! BrowserPlatformUtilsService . isOpera ( globalContext ) &&
@@ -137,6 +119,10 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
137
119
return navigator . userAgent . match ( "Version/([0-9.]*)" ) ?. [ 1 ] ;
138
120
}
139
121
122
+ isSafari ( ) : boolean {
123
+ return this . getDevice ( ) === DeviceType . SafariExtension ;
124
+ }
125
+
140
126
/**
141
127
* Safari previous to version 16.1 had a bug which caused artifacts on hover in large extension popups.
142
128
* https://bugs.webkit.org/show_bug.cgi?id=218704
@@ -151,10 +137,6 @@ export abstract class BrowserPlatformUtilsService implements PlatformUtilsServic
151
137
return parts ?. [ 0 ] < 16 || ( parts ?. [ 0 ] === 16 && parts ?. [ 1 ] === 0 ) ;
152
138
}
153
139
154
- isSafari ( ) : boolean {
155
- return this . getDevice ( ) === DeviceType . SafariExtension ;
156
- }
157
-
158
140
isIE ( ) : boolean {
159
141
return false ;
160
142
}
0 commit comments