This commit is contained in:
Isaac
2025-11-11 18:07:34 +08:00
parent 99cb9d4832
commit 3d51d83e89
12 changed files with 305 additions and 171 deletions

View File

@@ -254,6 +254,18 @@ static void registerEffectViewOverrides(void) {
if (@available(iOS 26.0, *)) {
registerEffectViewOverrides();
}
#if DEBUG
Class cls = NSClassFromString(@"WKBrowsingContextController");
SEL sel = NSSelectorFromString(@"registerSchemeForCustomProtocol:");
if ([cls respondsToSelector:sel]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[cls performSelector:sel withObject:@"http"];
[cls performSelector:sel withObject:@"https"];
#pragma clang diagnostic pop
}
#endif
});
}