Skip to content

Commit

Permalink
Add local to url
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiayucheng1212 committed Apr 24, 2024
1 parent c9e8207 commit 916e1bb
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 916e1bb

Please sign in to comment.