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
[bug] window.__TAURI__ doesn't get injected if the Entry Url (devPath/distPath) is not an origin url (ie: entry url is a subpage) #4414
Comments
would write a fix for it if the core team agrees that it is a bug and not an intended behaviour |
Thanks for the report! I just fixed the issue while checking the problem, but will love to see your PR next time ❤️ Fix will be available soon in v1.0.1. |
awesome. you are amzing
…On Tue, Jun 21, 2022, 20:00 Lucas Fernandes Nogueira < ***@***.***> wrote:
Thanks for the report! I just fixed the issue while checking the problem,
but will love to see your PR next time ❤️
Fix will be available soon in v1.0.1.
—
Reply to this email directly, view it on GitHub
<#4414 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAX74OFQEFWXZSL3EKMJB73VQGVGRANCNFSM5ZLBVZWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
When I use Is this currently supported? All projects run in the same Tauri app, but there are 2 different project addresses |
You'll need to merge both somehow. For instance you can use Webpack dev proxy in development mode, and move all assets to the same folder for production. We don't support multiple dev URLs currently. |
sorry to comment on a closed issue again, but the fix worked for localhost but not if you use an external url (or maybe because of https://, couldn't confirm). @lucasfernog issue should be reopened? |
@imadbz Tauri's apis are intentionally not injected into windows with external urls. |
Describe the bug
if we specify the url to be an origin (ex: http://localhost:3000), global tauri gets injected in the window.
if we specify the url to be an inner page (ex: http://localhost:3000/about), global tauri doesn't get injected.
Reproduction
specify devPath to an inner page. (ex: http://localhost:3000/about)
run the app
inspect and check for window.__TAURI vars
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: