feat: minimum OS 10.14 (for notifications)

This commit is contained in:
relikd
2025-10-24 00:16:51 +02:00
parent 46fa898807
commit e63d6c5784
2 changed files with 4 additions and 2 deletions

View File

@@ -15,7 +15,9 @@
- (void)preparePreviewOfFileAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable))handler {
NSData *data = generateHTMLData(url, [NSBundle mainBundle], NO);
// sure, we could use `WKWebView`, but that requires the `com.apple.security.network.client` entitlement
#pragma clang diagnostic ignored "-Wdeprecated"
WebView *web = [[WebView alloc] initWithFrame:self.view.bounds];
#pragma clang diagnostic pop
web.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
[self.view addSubview:web];
// [web.mainFrame loadHTMLString:html baseURL:nil];