diff --git a/tildes/static/js/behaviors/theme-selector.js b/tildes/static/js/behaviors/theme-selector.js index 53d70ec..55aa050 100644 --- a/tildes/static/js/behaviors/theme-selector.js +++ b/tildes/static/js/behaviors/theme-selector.js @@ -14,7 +14,8 @@ $.onmount('[data-js-theme-selector]', function() { // persist the new theme for the user in their cookie document.cookie = 'theme=' + new_theme + ';' + - 'path=/;max-age=315360000;secure'; + 'path=/;max-age=315360000;secure;domain=' + + document.location.hostname; // remove any theme classes currently on the body $body = $('body').first();