mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Remove redundant logic
This commit is contained in:
parent
8100edbef9
commit
ec984ac81d
@ -1941,13 +1941,6 @@ window.launch_app = async (options)=>{
|
||||
iframe_url.searchParams.append('puter.auth.token', options.token);
|
||||
}
|
||||
|
||||
// if options.params is set, add them to the URL as query params
|
||||
if(options.params && options.params.length > 0){
|
||||
for (const property in options.params) {
|
||||
iframe_url.searchParams.append(property, options.params[property]);
|
||||
}
|
||||
}
|
||||
|
||||
// Try to acquire app token from the server
|
||||
else{
|
||||
let response = await fetch(window.api_origin + "/auth/get-user-app-token", {
|
||||
|
Loading…
Reference in New Issue
Block a user