fix(platform): add OnePlus detection to Oppo family device check

This commit is contained in:
2026-07-01 18:59:46 +08:00
parent b59da8f7e4
commit 85ee34e3f7
+1 -1
View File
@@ -94,7 +94,7 @@ export class PlatformDetector {
static isOppoFamilyDevice(ua: string | null = null): boolean {
const info = PlatformDetector.getPlatformInfo(ua);
const target = `${info.deviceVendor} ${info.deviceModel} ${info.userAgent}`;
return /\b(OPPO|OPlus|ColorOS|CPH\d{3,})\b/i.test(target);
return /\b(OPPO|OPlus|OnePlus|ColorOS|CPH\d{3,})\b/i.test(target);
}
private static getUserAgent(ua: string | null = null): string {