Skip to content

Commit

Permalink
Remove developer console logs when unknown language found
Browse files Browse the repository at this point in the history
They are happening whenever ULS triggers, or maybe whenever it loads. It's
pretty annoying.

See https://bugzilla.wikimedia.org/show_bug.cgi?id=45047

Change-Id: Ia58083f02d61e3b621112352e88d9e7cbfb2f0c0
  • Loading branch information
santhoshtr committed Nov 25, 2013
1 parent 9d77cfb commit cfba32a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jquery.uls.core.js
Expand Up @@ -90,9 +90,7 @@

for ( var code in this.languages ) {
if ( $.uls.data.languages[code] === undefined ) {
if ( window.console && window.console.log ) {
window.console.log( 'ULS: Unknown language ' + code + '.' );
}
// Language is unknown to ULS.
delete this.languages[code];
}
}
Expand Down

0 comments on commit cfba32a

Please sign in to comment.