diff --git a/app/Terminal.m b/app/Terminal.m index 3540a0d9b4..e0c053c524 100644 --- a/app/Terminal.m +++ b/app/Terminal.m @@ -55,9 +55,7 @@ - (instancetype)initWithType:(int)type number:(int)num { CGRect webviewSize = CGRectMake(0, 0, 10000, 10000); self.webView = [[CustomWebView alloc] initWithFrame:webviewSize configuration:config]; self.webView.scrollView.scrollEnabled = NO; - [self.webView loadRequest: - [NSURLRequest requestWithURL: - [NSBundle.mainBundle URLForResource:@"xterm-dist/term" withExtension:@"html"]]]; + [self.webView loadFileURL:[NSBundle.mainBundle URLForResource:@"xterm-dist/term" withExtension:@"html"] allowingReadAccessToURL:[NSBundle.mainBundle URLForResource:@"xterm-dist/term" withExtension:@"html"]]; [self.webView addObserver:self forKeyPath:@"loading" options:0 context:NULL]; [self _addPreferenceObservers];