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.
false
1 parent 73cab97 commit 8cb7d66Copy full SHA for 8cb7d66
lib/utils.js
@@ -177,9 +177,13 @@ function trim(str) {
177
*
178
* react-native:
179
* navigator.product -> 'ReactNative'
180
+ * nativescript
181
+ * navigator.product -> 'NativeScript' or 'NS'
182
*/
183
function isStandardBrowserEnv() {
- if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
184
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
185
+ navigator.product === 'NativeScript' ||
186
+ navigator.product === 'NS') {
187
return false;
188
}
189
return (
0 commit comments