2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

[NS]: Send false flag isStandardBrowserEnv for Nativescript

This commit is contained in:
arpit
2018-06-17 20:33:06 +05:30
committed by Khaled Garbaya
parent 73cab975f0
commit 8cb7d667fb
+5 -1
View File
@@ -177,9 +177,13 @@ function trim(str) {
*
* react-native:
* navigator.product -> 'ReactNative'
* nativescript
* navigator.product -> 'NativeScript' or 'NS'
*/
function isStandardBrowserEnv() {
if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
navigator.product === 'NativeScript' ||
navigator.product === 'NS') {
return false;
}
return (