Skip to content

Commit

Permalink
Fix login crash
Browse files Browse the repository at this point in the history
Fixes #81
  • Loading branch information
1hitsong committed Nov 6, 2024
1 parent 8816cee commit 3381699
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/config/SigninScene.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</children>
<interface>
<field id="user" type="string" onchange="onUserChange" value="" />
<field id="profileImageUri" type="string" onchange="onProfileImageUriChange" value="" />
<field id="profileImageUri" type="string" onchange="onProfileImageUriChange" value="" alwaysNotify="true" />
<field id="alert" type="string" onchange="onAlertChange" value="" />
</interface>
</component>
5 changes: 3 additions & 2 deletions source/api/Image.bs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ function ImageURL(id, version = "Primary", params = {})
end function

function UserImageURL(id, params = {})
if not isValid(id) then return ""

' set defaults
if params.maxHeight = invalid
params.append({ "maxHeight": "300" })
Expand All @@ -67,6 +69,5 @@ function UserImageURL(id, params = {})
params.append({ "quality": "90" })
end if

url = Substitute("Users/{0}/Images/Primary", id)
return buildURL(url, params)
return buildURL(`Users/${id}/Images/Primary`, params)
end function
8 changes: 8 additions & 0 deletions source/static/whatsNew/1.0.10.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@
{
"description": "Don't use web setting for Live TV view",
"author": "1hitsong"
},
{
"description": "Begin reworking LiveTV design & code",
"author": "1hitsong"
},
{
"description": "Fix login crash",
"author": "1hitsong"
}
]

0 comments on commit 3381699

Please sign in to comment.