Permalink
Browse files

Switch form WebView to WKWebView - may break pre 10.10 compatibility.

Fixes #17
  • Loading branch information...
Gavin Brock
Gavin Brock committed Jul 7, 2015
1 parent fec361f commit dd05a360f5a1f0f5b11b049e1d772aadeab04017
@@ -26,7 +26,7 @@

@interface WebSaverView : ScreenSaverView
{
WebView *webView;
WKWebView *webView;
NSDate *lastLoad;

// Motion Sensor Related
@@ -119,7 +119,7 @@ - (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview
enableMultiMonitorBool = [defaults boolForKey:@"EnableMultiMonitor"];
DebugLog(@"Will use MultiMonitor: %d", enableMultiMonitorBool);

webView = [[WebView alloc] initWithFrame:frame];
webView = [[WKWebView alloc] initWithFrame:frame];
[webView setDrawsBackground:NO];
[webView setCustomUserAgent:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25"];

0 comments on commit dd05a36

Please sign in to comment.