mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-18 11:10:42 -06:00
Fix issue with detecting whether positions is an object or not
This commit is contained in:
@@ -3623,7 +3623,7 @@ window.get_auto_arrange_data = async()=>{
|
||||
const preferenceValue = await puter.kv.get('user_preferences.auto_arrange_desktop');
|
||||
is_auto_arrange_enabled = preferenceValue === null ? true : preferenceValue;
|
||||
const positions = await puter.kv.get('desktop_item_positions')
|
||||
desktop_item_positions = (positions === null || typeof positions !== 'object') ? {} : positions;
|
||||
desktop_item_positions = (!positions || typeof positions !== 'object' || Array.isArray(positions)) ? {} : positions;
|
||||
}
|
||||
|
||||
window.clear_desktop_item_positions = async(el_desktop)=>{
|
||||
|
||||
Reference in New Issue
Block a user