Remove redundant logic

This commit is contained in:
Nariman Jelveh 2024-03-16 19:59:36 -07:00
parent 8100edbef9
commit ec984ac81d

View File

@ -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", {