File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -693,11 +693,8 @@ struct WebView: NSViewRepresentable {
693693func hardReloadWebView( webView: WKWebView ) {
694694 webView. configuration. userContentController. removeAllUserScripts ( )
695695 loadPluginsAndCSS ( webView: webView)
696- guard let releaseChannel = UserDefaults . standard. string ( forKey: " discordReleaseChannel " ) ,
697- let url = DiscordReleaseChannel ( rawValue: releaseChannel) ? . url else {
698- webView. load ( URLRequest ( url: DiscordReleaseChannel . stable. url) )
699- return
700- }
696+ let releaseChannel = UserDefaults . standard. string ( forKey: " discordReleaseChannel " ) ?? " "
697+ let url = DiscordReleaseChannel ( rawValue: releaseChannel) ? . url ?? DiscordReleaseChannel . stable. url
701698
702699 webView. load ( URLRequest ( url: url) )
703700}
You can’t perform that action at this time.
0 commit comments