mirror of
https://github.com/HeyPuter/puter.git
synced 2026-02-22 22:48:58 -06:00
request 64x64 icon sizes when opening apps
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user