mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Merge pull request #341 from Xiayucheng1212/pass_locale
Pass locale to the iframe url whenever accessing an app
This commit is contained in:
commit
a572a0a640
@ -1756,6 +1756,9 @@ window.launch_app = async (options)=>{
|
||||
}
|
||||
}
|
||||
|
||||
// Add locale to URL
|
||||
iframe_url.searchParams.append('puter.locale', window.locale);
|
||||
|
||||
// Add options.args to URL
|
||||
iframe_url.searchParams.append('puter.args', JSON.stringify(options.args ?? {}));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user