1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00

use blank string if no translation found

This commit is contained in:
gorhill 2015-03-03 09:37:15 -05:00
parent 5edf394cac
commit d5af32eaef

View File

@ -37,10 +37,7 @@ uDom.onLoad(function() {
}
});
uDom('[placeholder]').forEach(function(elem) {
var placeholder = vAPI.i18n(elem.attr('placeholder'));
if ( placeholder ) {
elem.attr('placeholder', placeholder);
}
elem.attr('placeholder', vAPI.i18n(elem.attr('placeholder')));
});
uDom('[data-i18n-tip]').forEach(function(elem) {
elem.attr(