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:
+5
-1
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user