|
@@ -16,7 +16,7 @@ import { setStoreData } from "../store";
|
|
|
const webBlank = ["mandev.dayaedu.com", "mantest.dayaedu.com", "manonline.dayaedu.com"];
|
|
|
const platformApi = blank.includes(location.hostname) ? "/api-teacher" : webBlank.includes(location.hostname) ? "/api-web" : "/api-student";
|
|
|
setStoreData({
|
|
|
- isApp: u.includes("DAYAAPPA") || u.includes("DAYAAPPI"),
|
|
|
+ isApp: (window as any)?.DAYA || (window as any).webkit?.messageHandlers?.DAYA ? true : false,
|
|
|
platformApi,
|
|
|
platformType: platformApi === "/api-student" ? "STUDENT" : platformApi === "/api-teacher" ? "TEACHER" : "WEB",
|
|
|
proxy: import.meta.env.DEV ? "/gym" : "",
|