From d1483102625e3c43cb5f8cf03c4563e2d2d9673c Mon Sep 17 00:00:00 2001 From: ethanarbuckle Date: Wed, 5 Jul 2023 23:08:15 -0700 Subject: [PATCH] fix: stuck during credential creation --- RedditAPICredentialViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RedditAPICredentialViewController.m b/RedditAPICredentialViewController.m index 61be670..2aa53f1 100644 --- a/RedditAPICredentialViewController.m +++ b/RedditAPICredentialViewController.m @@ -55,7 +55,8 @@ - (void)webView:(WKWebView *)webView didFinishNavigation:(null_unspecified WKNav }); } - if ([webView.URL.absoluteString isEqualToString:@"https://www.reddit.com/prefs/apps"]) { + // Cannot use an equality check here because iOS may add a cache buster to the url (?cache-bust=1688623485410) + if ([webView.URL.absoluteString containsString:@"https://www.reddit.com/prefs/apps"]) { // Inspect contents of the developer apps page -- looking for a client id [self pageDidUpdate:webView]; }