Skip to content

Commit a644241

Browse files
committed
Use a FQDN for the virtual hostname to folder mapping.
Hopefully this fixes the odd delays on load for the iframe plugin...
1 parent 3b9e537 commit a644241

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WebpagePanel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private void CoreWebView2InitializationCompleted(object sender, EventArgs e)
208208
// 3. bundled with plugin
209209
var webAppInConfigFolder = Path.Combine(SettingHelper.LocalDataPath, "webviewplus");
210210
var webAppInBundledFolder = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "webviewplus");
211-
var uri = new Uri("https://webviewplus/index.html");
211+
var uri = new Uri("https://webviewplus.mooflu.com/index.html");
212212
var webAppUrl = SettingHelper.Get<string>("WebAppUrl", null, "QuickLook.Plugin.WebViewPlus");
213213
if (webAppUrl != null)
214214
{
@@ -221,12 +221,12 @@ private void CoreWebView2InitializationCompleted(object sender, EventArgs e)
221221
if (File.Exists(Path.Combine(webAppInConfigFolder, "index.html")))
222222
{
223223
ProcessHelper.WriteLog("QuickLook.Plugin.WebViewPlus using app from config");
224-
_webView.CoreWebView2.SetVirtualHostNameToFolderMapping("webviewplus", webAppInConfigFolder, CoreWebView2HostResourceAccessKind.Allow);
224+
_webView.CoreWebView2.SetVirtualHostNameToFolderMapping("webviewplus.mooflu.com", webAppInConfigFolder, CoreWebView2HostResourceAccessKind.Allow);
225225
}
226226
else if(File.Exists(Path.Combine(webAppInBundledFolder, "index.html")))
227227
{
228228
ProcessHelper.WriteLog("QuickLook.Plugin.WebViewPlus using app from plugin");
229-
_webView.CoreWebView2.SetVirtualHostNameToFolderMapping("webviewplus", webAppInBundledFolder, CoreWebView2HostResourceAccessKind.Allow);
229+
_webView.CoreWebView2.SetVirtualHostNameToFolderMapping("webviewplus.mooflu.com", webAppInBundledFolder, CoreWebView2HostResourceAccessKind.Allow);
230230
}
231231
}
232232
_webView.Source = uri;

0 commit comments

Comments
 (0)