mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
use blank string if no translation found
This commit is contained in:
parent
5edf394cac
commit
d5af32eaef
1 changed files with 1 additions and 4 deletions
|
|
@ -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 a new issue