fix: Mobile reporting wrong user-agent
This commit is contained in:
@@ -199,6 +199,10 @@ function createApiInstance(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof window !== "undefined" && (window as any).ReactNativeWebView) {
|
||||||
|
config.headers["User-Agent"] = "Termix-Mobile";
|
||||||
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user