From 9d9e6716d5b2ba3bd8574e89aa624a5f7ef44b87 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 13 Jan 2018 21:03:03 -0800 Subject: [PATCH] fix theme switch on add instance --- routes/settings/instances/add.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/settings/instances/add.html b/routes/settings/instances/add.html index 8f53cc19..79bff786 100644 --- a/routes/settings/instances/add.html +++ b/routes/settings/instances/add.html @@ -52,6 +52,7 @@ import { registerApplication, generateAuthLink, getAccessTokenFromAuthCode } from '../../_utils/mastodon/oauth' import { store } from '../../_utils/store' import { goto } from 'sapper/runtime.js' + import { switchToTheme } from '../../_utils/themeEngine' const REDIRECT_URI = (typeof location !== 'undefined' ? location.origin : 'https://pinafore.social') + '/settings/instances/add' @@ -121,6 +122,7 @@ instanceThemes: instanceThemes }) this.store.save() + switchToTheme('default') goto('/') }, }