Skip to content

Commit

Permalink
Merge pull request #341 from Xiayucheng1212/pass_locale
Browse files Browse the repository at this point in the history
Pass locale to the iframe url whenever accessing an app
  • Loading branch information
jelveh authored Apr 25, 2024
2 parents c4b2d98 + 916e1bb commit a572a0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? {}));

Expand Down

0 comments on commit a572a0a

Please sign in to comment.