From 6a0339dea4312f469f506841095efea203315bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 2 Jun 2022 18:12:46 -0400 Subject: [PATCH] https://github.com/pichalite/nodebb-theme-slick/issues/60 --- public/src/client/account/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/account/settings.js b/public/src/client/account/settings.js index 4e85fe4aec..57b82151ee 100644 --- a/public/src/client/account/settings.js +++ b/public/src/client/account/settings.js @@ -8,7 +8,7 @@ define('forum/account/settings', [ // If page skin is changed but not saved, switch the skin back $(window).on('action:ajaxify.start', function () { - if (ajaxify.data.template.name === 'account/settings' && $('#bootswatchSkin').val() !== config.bootswatchSkin) { + if (ajaxify.data.template.name === 'account/settings' && $('#bootswatchSkin').length && $('#bootswatchSkin').val() !== config.bootswatchSkin) { reskin(config.bootswatchSkin); } });