request 64x64 icon sizes when opening apps

This commit is contained in:
jelveh
2024-12-23 06:17:16 -08:00
parent eb26eacdc2
commit d922c848ce
2 changed files with 2 additions and 2 deletions

View File

@@ -1166,7 +1166,7 @@ async function UIDesktop(options){
window.app_launched_from_url = window.url_paths[1];
// get app metadata
try{
window.app_launched_from_url = await puter.apps.get(window.url_paths[1])
window.app_launched_from_url = await puter.apps.get(window.url_paths[1], {params: {icon_size: 64}})
window.is_fullpage_mode = window.app_launched_from_url.metadata?.fullpage_on_landing ?? window.is_fullpage_mode ?? false;
// show 'Show Desktop' button

View File

@@ -45,7 +45,7 @@ const launch_app = async (options)=>{
else if(options.app_obj)
app_info = options.app_obj;
else
app_info = await puter.apps.get(options.name);
app_info = await puter.apps.get(options.name, {params: {icon_size: 64}});
// For backward compatibility reasons we need to make sure that both `uuid` and `uid` are set
app_info.uuid = app_info.uuid ?? app_info.uid;