mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
update safari sub-repo to latest extension manifest
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// ViewController.swift
|
||||
// Shared (App)
|
||||
//
|
||||
// Created by Seth Burkart on 10/9/2023.
|
||||
// Created by Seth Burkart on 3/12/2023.
|
||||
//
|
||||
|
||||
import WebKit
|
||||
@@ -62,7 +62,7 @@ class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMess
|
||||
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
|
||||
#if os(macOS)
|
||||
if (message.body as! String != "open-preferences") {
|
||||
return;
|
||||
return
|
||||
}
|
||||
|
||||
SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in
|
||||
@@ -72,7 +72,7 @@ class ViewController: PlatformViewController, WKNavigationDelegate, WKScriptMess
|
||||
}
|
||||
|
||||
DispatchQueue.main.async {
|
||||
NSApplication.shared.terminate(nil)
|
||||
NSApp.terminate(self)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user