diff --git a/pontoon/base/static/js/theme-switcher.js b/pontoon/base/static/js/theme-switcher.js index c07532cadc..6627e19191 100644 --- a/pontoon/base/static/js/theme-switcher.js +++ b/pontoon/base/static/js/theme-switcher.js @@ -79,11 +79,9 @@ $(function () { $('body').data('theme', theme); }, error: function (request) { - if (request.responseText === 'error') { - Pontoon.endLoader('Oops, something went wrong.', 'error'); - } else { - Pontoon.endLoader(request.responseText, 'error'); - } + Pontoon.endLoader('Oops, something went wrong.', 'error'); + // eslint-disable-next-line no-console + console.log(request); }, }); });