mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +01:00
Fix Safari i18n function (default to '' if no localized string found)
This commit is contained in:
parent
3982bd6de9
commit
e287e4643f
@ -101,7 +101,7 @@ xhr.send();
|
|||||||
vAPI.i18nData = JSON.parse(xhr.responseText);
|
vAPI.i18nData = JSON.parse(xhr.responseText);
|
||||||
|
|
||||||
vAPI.i18n = function(s) {
|
vAPI.i18n = function(s) {
|
||||||
return this.i18nData[s] || s;
|
return this.i18nData[s] || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user