web: more ipad accommodations and clean up
- moved all user agent toggles to (legacy) frontend, like it should have always been - removed unnecessary building
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { languageList } from "../../localization/manager.js";
|
||||
|
||||
export default function(lang, userAgent) {
|
||||
export default function(lang) {
|
||||
let language = languageList.includes(lang) ? lang : "en";
|
||||
|
||||
let ua = userAgent.toLowerCase();
|
||||
let platform = (ua.match("android") || ua.match("iphone os")) ? "mob" : "pc";
|
||||
if (platform === "mob" && ua.match("iphone os")) platform = "ios";
|
||||
|
||||
return `/build/${platform}/${language}.html`;
|
||||
return `/build/${language}.html`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user