mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-24 14:16:06 +00:00
request 64x64 icons for Taskbar via /whoami
This commit is contained in:
@@ -422,7 +422,7 @@ window.check_fsentry_against_allowed_file_types_string =function (fsentry, allow
|
||||
window.refresh_user_data = async (auth_token)=>{
|
||||
let whoami
|
||||
try{
|
||||
whoami = await puter.os.user();
|
||||
whoami = await puter.os.user({query: 'icon_size=64'});
|
||||
}catch(e){
|
||||
// Ignored
|
||||
}
|
||||
|
||||
@@ -395,7 +395,7 @@ window.initgui = async function(options){
|
||||
puter.setAuthToken(query_param_auth_token);
|
||||
|
||||
try{
|
||||
whoami = await puter.os.user();
|
||||
whoami = await puter.os.user({query: 'icon_size=64'});
|
||||
}catch(e){
|
||||
if(e.status === 401){
|
||||
window.logout();
|
||||
@@ -456,7 +456,7 @@ window.initgui = async function(options){
|
||||
// try to get user data using /whoami, only if that data is missing
|
||||
if(!whoami){
|
||||
try{
|
||||
whoami = await puter.os.user();
|
||||
whoami = await puter.os.user({query: 'icon_size=64'});
|
||||
}catch(e){
|
||||
if(e.status === 401){
|
||||
bad_session_logout();
|
||||
|
||||
Reference in New Issue
Block a user