feature: add SVG support for sidebar & main background

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej
2021-05-24 13:26:52 +02:00
parent a9cc16911d
commit 9f2a54100b

View File

@@ -22,7 +22,7 @@ export default {
getSidebarBackground: (state, getters, rootState, rootGetters) => {
let configDir = findDirectory(state.filetree, ['config', themeDir])
const acceptName = "sidebar-background"
const acceptExtensions = ['jpg', 'jpeg', 'png', 'gif']
const acceptExtensions = ['jpg', 'jpeg', 'png', 'gif', 'svg']
let file = configDir.find(element =>
element.filename !== undefined && (
@@ -38,7 +38,7 @@ export default {
getMainBackground: (state, getters, rootState, rootGetters) => {
let configDir = findDirectory(state.filetree, ['config', themeDir])
const acceptName = "main-background"
const acceptExtensions = ['jpg', 'jpeg', 'png', 'gif']
const acceptExtensions = ['jpg', 'jpeg', 'png', 'gif', 'svg']
let file = configDir.find(element =>
element.filename !== undefined && (