You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
Fix MM-35819 for Windows
This commit is contained in:
@ -134,7 +134,7 @@ namespace Focalboard {
|
||||
|
||||
webView.ContentLoading += WebView_ContentLoading;
|
||||
|
||||
var url = String.Format("http://localhost:{0}", port);
|
||||
var url = String.Format("http://localhost:{0}/", port);
|
||||
webView.Source = new Uri(url);
|
||||
}
|
||||
|
||||
@ -146,7 +146,10 @@ namespace Focalboard {
|
||||
|
||||
private void WebView_ContentLoading(object sender, CoreWebView2ContentLoadingEventArgs e) {
|
||||
// Set focalboardSessionId
|
||||
string script = $"localStorage.setItem('focalboardSessionId', '{sessionToken}');";
|
||||
var url = String.Format("http://localhost:{0}/", port);
|
||||
string script = $@"if (window.location.href.toLowerCase().startsWith('{url}'.toLowerCase())) {{
|
||||
localStorage.setItem('focalboardSessionId', '{sessionToken}');
|
||||
}}";
|
||||
webView.ExecuteScriptAsync(script);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user