mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08: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);
|
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
|
// Try to acquire app token from the server
|
||||||
else{
|
else{
|
||||||
let response = await fetch(window.api_origin + "/auth/get-user-app-token", {
|
let response = await fetch(window.api_origin + "/auth/get-user-app-token", {
|
||||||
|
Loading…
Reference in New Issue
Block a user