chore(examples): add sapper set-up

This commit is contained in:
Eric Liu 2020-09-07 16:09:49 -07:00
commit fbb0c2d413
17 changed files with 2677 additions and 0 deletions

View file

@ -47,6 +47,7 @@
afterUpdate(() => {
if (isValidTheme(theme)) {
document.documentElement.setAttribute("theme", theme);
if (persist) {
localStorage.setItem(persistKey, theme);
}