Improve: disable clash webview cache
This commit is contained in:
parent
5bb6c5d023
commit
77c937ec7c
|
@ -56,7 +56,7 @@ class ClashWebViewContoller: NSViewController {
|
|||
let defaultUrl = "\(ConfigManager.apiUrl)/ui/"
|
||||
let url = UserDefaults.standard.string(forKey: "webviewUrl") ?? defaultUrl
|
||||
if let url = URL(string: url) {
|
||||
webview.load(URLRequest(url: url))
|
||||
webview.load(URLRequest(url: url, cachePolicy: .reloadIgnoringLocalAndRemoteCacheData, timeoutInterval: 0))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue