Skip to content

Commit

Permalink
refactor: load theme script on common layout
Browse files Browse the repository at this point in the history
  • Loading branch information
yacosta738 committed Mar 5, 2024
1 parent 2abd98d commit 8dcca0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion apps/frontend/web/src/layouts/CommonLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const { title, description = pkg.description } = Astro.props;
<meta name="description" content={description ?? pkg.description} />
<meta name="copyright" content={pkg.license} />
<title>{title}</title>
<script src="./load-theme.js"></script>
<script>
import { loadTheme } from '@lyra/vm-core';
loadTheme();
</script>
</head>
<body
class:list={[
Expand Down
2 changes: 0 additions & 2 deletions apps/frontend/web/src/layouts/load-theme.js

This file was deleted.

0 comments on commit 8dcca0d

Please sign in to comment.