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

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