mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-09 06:19:23 +00:00
Stories
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user