diff --git a/homepage/js/sheets.js b/homepage/js/sheets.js index 3a3fb9b..abf694d 100644 --- a/homepage/js/sheets.js +++ b/homepage/js/sheets.js @@ -4,8 +4,9 @@ /* sets the sheet to the sheet in the cookie, if the user saved their * preferences */ window.initializesheets = function() { - var sheet = window.getCookie('sheet'); - if(sheet != '') window.setStyling(sheet); + var sheet; + if((sheet = window.getCookie('sheet')) != '') + window.setStyling(sheet); }; /* fetches the current styling value */