Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate SPA (Vue) #195

Open
funshion2 opened this issue Dec 6, 2024 · 3 comments
Open

How to integrate SPA (Vue) #195

funshion2 opened this issue Dec 6, 2024 · 3 comments

Comments

@funshion2
Copy link

Hello,
anyone tell me how to integrate SPA, I know integrate website url,
but I don't know to config local files?

@joaompneves
Copy link
Collaborator

Hi,
Can you elaborate?

@funshion2
Copy link
Author

@joaompneves
Hi,
I see demo can specified url as following:

browser = new AvaloniaCefBrowser();
browser.Address = "https://www.baidu.com";
browser.RegisterJavascriptObject(new BindingTestClass(), "boundBeforeLoadObject");

I dot't want to use specified url, I want to use local file (seems as cordova).
When I changed browser.Address to 'file://xxxx.html', It not work.

@joaompneves
Copy link
Collaborator

You can use a Scheme Handler Factory for that purpose.
Check this: https://github.com/OutSystems/CefGlue/blob/main/CefGlue.Tests/CustomSchemes/CustomSchemeHandlerFactory.cs#L7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants