|
@@ -132,8 +132,10 @@ namespace fis
|
|
|
if (_host.Contains(ShellConfig.Instance.DistHost))
|
|
|
{
|
|
|
var appHandler = new FileSystemHostHandler(ShellConfig.Instance.DistHost , ShellConfig.Instance.DistResourcePath);
|
|
|
+
|
|
|
var handler = new HostRequestHandler();
|
|
|
handler.RegisterHostHandler(appHandler);
|
|
|
+
|
|
|
_browser = new AvaloniaCefBrowser
|
|
|
{
|
|
|
RequestHandler = handler
|
|
@@ -142,8 +144,10 @@ namespace fis
|
|
|
else
|
|
|
{
|
|
|
var appHandler = new FileSystemHostHandler(ShellConfig.Instance.AppHost, ShellConfig.Instance.AppResourcePath);
|
|
|
+ var resourceHandler = new FileSystemHostHandler(ShellConfig.Instance.LocalResourceHost, ShellConfig.Instance.LocalResourcePath);
|
|
|
var handler = new HostRequestHandler();
|
|
|
-
|
|
|
+ // handler.RegisterHostHandler(resourceHandler);
|
|
|
+ handler.RegisterHostHandler(appHandler);
|
|
|
_browser = new AvaloniaCefBrowser
|
|
|
{
|
|
|
RequestHandler = handler
|
|
@@ -194,8 +198,8 @@ namespace fis
|
|
|
_browser.RegisterJavascriptObject(scriptObj, "FisShellApi");
|
|
|
}
|
|
|
else {
|
|
|
- var scriptObj = new FisBrowserScriptObject(_title, platformService);
|
|
|
- _browser.RegisterJavascriptObject(scriptObj, "FisShellNotify");
|
|
|
+ // var scriptObj = new FisBrowserScriptObject(_title, platformService);
|
|
|
+ // _browser.RegisterJavascriptObject(scriptObj, "FisShellNotify");
|
|
|
}
|
|
|
browserContainer.Child = _browser;
|
|
|
WindowStartupLocation = WindowStartupLocation.Manual;
|