Skip to content

Commit

Permalink
Changed webView for iOS13b4
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzodla committed Jul 18, 2019
1 parent e5ba367 commit 91b161a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Terminal.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 91b161a

Please sign in to comment.