summaryrefslogtreecommitdiff
path: root/CyteKit/WebViewController.mm
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-10-04 15:06:42 -1000
committerSam Bingner <sam@bingner.com>2019-05-27 14:26:42 -1000
commitc87c60d2bb54bdbb43455b5dbedcf2af53c9aaed (patch)
treeda2a5a1416e2c7db41563f8161c26bc6150448c8 /CyteKit/WebViewController.mm
parent2e6ea0ffb9c4027bcd49667a55a0d59a52b811dd (diff)
Specify arches to compile via variable and clear up iOS11 availability warning
Diffstat (limited to 'CyteKit/WebViewController.mm')
-rw-r--r--CyteKit/WebViewController.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 329d568..0394834 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -213,7 +213,8 @@ static _H<NSMutableSet> Diversions_;
+ (void) _initialize {
[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding];
- [WebPreferences setWebKitLinkTimeVersion:PACKED_VERSION(3453,0,0)];
+ if ([WebPreferences respondsToSelector:@selector(setWebKitLinkTimeVersion:)])
+ [WebPreferences setWebKitLinkTimeVersion:PACKED_VERSION(3453,0,0)];
void *js(NULL);
if (js == NULL)