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

Fixed navigation in custom_spa_server_on_free_port #61

Merged
merged 12 commits into from
Jul 15, 2024

Conversation

sensiblearts
Copy link
Contributor

Now that navigation is fixed (Thank you! @hassandraga ), I had to fix the navigation my the example -- because I wrote it when webui navigation was not working on Windows release mode. The new code:

 .EVENT_NAVIGATION => {
            const url = e.getString();
            if (std.mem.eql(u8, url, home_url)) {
                var win = e.getWindow();
                std.debug.print("WebUI.js is Starting navigation to: {s}\n", .{url});
                win.navigate(url);
            } else {
                std.debug.print("Client JS is navigating to: {s}\n", .{url});
            }

@jinzhongjia jinzhongjia merged commit 35e061d into webui-dev:main Jul 15, 2024
13 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants