mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-09-20 23:29:15 +00:00
7 lines
298 B
JavaScript
7 lines
298 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
// Processing all emenents contains data-i18n attribute
|
|
Array.prototype.forEach.call(document.querySelectorAll('[data-i18n]'), function(elem) {
|
|
elem.innerHTML = chrome.i18n.getMessage(elem.dataset.i18n);
|
|
});
|
|
}, false);
|