Merge pull request #341 from Xiayucheng1212/pass_locale

Pass locale to the iframe url whenever accessing an app
This commit is contained in:
Nariman Jelveh 2024-04-25 13:14:16 -07:00 committed by GitHub
commit a572a0a640
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ?? {}));