(user settings) init user settings with .litenote.json

This commit is contained in:
2021-03-24 22:33:50 +01:00
parent 55faf04d4f
commit 556ddb7f1e
9 changed files with 96 additions and 31 deletions

View File

@@ -31,9 +31,9 @@ export const useImages = (sha: string) => {
if (!imageFile?.sha) {
return
}
const { getFileContent } = useFile(imageFile.sha, false)
const { getContent } = useFile(imageFile.sha, false)
const fileContent = await getFileContent()
const fileContent = await getContent()
image.setAttribute('src', `${SRC_PREFIX} ${fileContent}`)
}
})