forked from midou/invidious
move theme converter function to a separate file
This commit is contained in:
2 files changed
+12
-13
No files matched your search
@@ -0,0 +1,12 @@
|
||||
def convert_theme(theme)
|
||||
case theme
|
||||
when "true"
|
||||
"dark"
|
||||
when "false"
|
||||
"light"
|
||||
when "", nil
|
||||
nil
|
||||
else
|
||||
theme
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user