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:
parent
5edf394cac
commit
d5af32eaef
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user