From 270ae8a4fc660cf69a8f4663fdf36a0c67268466 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 27 Nov 2014 02:34:41 -0800 Subject: [PATCH] JavaScriptCore is now a public framework on iOS 7. --- LockScreen.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LockScreen.mm b/LockScreen.mm index 953ab60..f31f3a3 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -1137,7 +1137,12 @@ static void $UIWebViewWebViewDelegate$webView$didClearWindowObject$forFrame$(UIW [NSURLProtocol registerClass:[CydgetCGIURLProtocol class]]; [WebView registerURLSchemeAsLocal:@"cydget-cgi"]; - MSImageRef JavaScriptCore(MSGetImageByName("/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore")); + MSImageRef JavaScriptCore(NULL); + if (JavaScriptCore == NULL) + JavaScriptCore = MSGetImageByName("/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore"); + if (JavaScriptCore == NULL) + JavaScriptCore = MSGetImageByName("/System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore"); + MSImageRef WebCore(MSGetImageByName("/System/Library/PrivateFrameworks/WebCore.framework/WebCore")); if (!iOS4) { -- 2.45.2