Themes: init

This commit is contained in:
He4eT 2021-02-19 19:08:31 +05:00
commit cbc6207ad9
9 changed files with 108 additions and 46 deletions

View file

@ -2,7 +2,9 @@ import { h } from 'preact'
import { getFileExtension } from '~/src/utils/utils.routing'
export default function ({params: {theme, encodedUrl}}) {
export default function ({setTheme, theme, encodedUrl}) {
setTheme(theme)
const url = decodeURIComponent(encodedUrl)
const type = getFileExtension(url)