[Snow Team] qa-final: auto-commit work
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
export function isMobileHost(hostname = window.location.hostname) {
|
||||
return hostname === 'm.localhost' || hostname.startsWith('m.')
|
||||
return hostname === "m.localhost" || hostname.startsWith("m.");
|
||||
}
|
||||
|
||||
export function toMobilePath(path: string) {
|
||||
if (path === '/') {
|
||||
return '/m'
|
||||
if (path === "/") {
|
||||
return "/m";
|
||||
}
|
||||
if (path.startsWith('/m') || path.startsWith('/admin')) {
|
||||
return path
|
||||
if (path === "/m" || path.startsWith("/m/") || path.startsWith("/admin")) {
|
||||
return path;
|
||||
}
|
||||
return `/m${path}`
|
||||
return `/m${path}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user