Node.js based forum software built for the modern web
fix: don't crash if body doesn't have `skin-`
Barış Soner Uşaklıf6cfbbb520ec
diff --git a/public/src/app.js b/public/src/app.jsindex c1a21be21e..a300db8901 100644--- a/public/src/app.js+++ b/public/src/app.js@@ -778,6 +778,9 @@ app.cacheBuster = null;var currentSkinClassName = $('body').attr('class').split(/\s+/).filter(function (className) {return className.startsWith('skin-');});+ if (!currentSkinClassName[0]) {+ return;+ }var currentSkin = currentSkinClassName[0].slice(5);currentSkin = currentSkin !== 'noskin' ? currentSkin : '';