diff --git a/public/resources/js/translate.js b/public/resources/js/translate.js index 2cae2ed980..9aebd683e2 100644 --- a/public/resources/js/translate.js +++ b/public/resources/js/translate.js @@ -1,11 +1,5 @@ // TODO: refactor me! -var debugging = location.hostname === 'localhost'; -var sourceVisible = localStorage.getItem('source-visible'); -if (_.isUndefined(sourceVisible)) { - sourceVisible = debugging; -} else { - sourceVisible = sourceVisible === 'true'; -} +var sourceVisible = localStorage.getItem('source-visible') === 'true'; (function ($) { var nodes = document.querySelectorAll('p, li, h1, h2, h3, h4, h5, h6, header, a, button, small');