Skip to content

Commit

Permalink
Do not log error message on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
mathjazz committed Dec 5, 2023
1 parent f70cf68 commit 4b44870
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pontoon/base/static/js/theme-switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ $(function () {
// Set the data-theme attribute after successfully changing the theme
$('body').data('theme', theme);
},
error: function (request) {
error: function () {
Pontoon.endLoader('Oops, something went wrong.', 'error');
// eslint-disable-next-line no-console
console.log(request);
},
});
});
Expand Down

0 comments on commit 4b44870

Please sign in to comment.