address reviewer feedback

This commit is contained in:
Charles Ewert 2023-10-19 22:13:11 -04:00
parent 5e761ddd71
commit 31bbc56db7
3 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ function AboutMe(id = "" as string)
end function
sub SignOut(deleteSavedEntry = true as boolean)
if deleteSavedEntry = true
if deleteSavedEntry
unset_user_setting("token")
unset_user_setting("username")
end if

View File

@ -52,7 +52,7 @@ end sub
sub runRegistryUserMigrations(version as string)
regSections = getRegistrySections()
for each section in regSections
if section <> "Jellyfin"
if LCase(section) <> "jellyfin"
if version = "1.7.0"
print "Running User Registry Migration for 1.7.0"
' now saving LastRunVersion globally and per user so that we can run user specific registry migrations

View File

@ -37,7 +37,7 @@ function RegistryReadAll(section as string) as dynamic
registryData = {}
for each item in regKeyList
' ignore session related tokens
if item <> "token" and item <> "username" and item <> "password" and item <> "LastRunVersion"
if item <> "token" and item <> "username" and item <> "password" and LCase(item) <> "lastrunversion"
if registry.Exists(item)
registryData.AddReplace(item, registry.Read(item))
end if
@ -108,7 +108,7 @@ function getSavedUsers() as object
savedUsers = []
for each section in registrySections
if section <> "Jellyfin"
if LCase(section) <> "jellyfin"
savedUsers.push(section)
end if
end for