You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no window is added in the config file, but a window is created through app.create_window(), if the Javascript code in that window imports @tauri-apps/api then Tauri will incorrectly spawn a second window pointing to index.html (the default). This happens both in dev and in release builds.
To Reproduce
Steps to reproduce the behavior:
Create a Tauri project with API
Add a frontend page with a Javascript module that contains an import * as Tauri from '@tauri-apps/api';
Remove all windows from the config file ("windows": [],)
Create a window in the app setup with a label that isn't main, that loads the frontend page with the api import:
app.create_window("test".into(),WindowUrl::App("test".into()),
|builder, attrs| (builder, attrs)).expect("Could not create window");
Run the app
It will spawn the created window and then quickly after it will spawn a second window pointing to the index page of the frontend app
Describe the bug
If no window is added in the config file, but a window is created through
app.create_window()
, if the Javascript code in that window imports@tauri-apps/api
then Tauri will incorrectly spawn a second window pointing toindex.html
(the default). This happens both in dev and in release builds.To Reproduce
Steps to reproduce the behavior:
import * as Tauri from '@tauri-apps/api';
"windows": [],
)main
, that loads the frontend page with the api import:I've reduced my test project to the minimal code that reproduces the error: woubuc/tauri-double-windows-repro.
Expected behavior
I expect that only 1 window opens after 1 call to
app.create_window()
.Platform and Versions (required):
The text was updated successfully, but these errors were encountered: