mirror of
https://github.com/Oreolek/TrackMeNot-Chrome.git
synced 2024-06-30 21:55:08 +03:00
12 lines
322 B
JavaScript
12 lines
322 B
JavaScript
function updateText(text) {
|
|
document.getElementById("tmn-text").innerHTML = text;
|
|
console.log("Updating text on widget with: "+ text);
|
|
}
|
|
|
|
function UpdateIcon(url) {
|
|
document.getElementById("tmn-widget-icon").setAttribute("src",url);
|
|
}
|
|
|
|
self.port.on("UpdateText", updateText);
|
|
self.port.on("UpdateIcon", UpdateIcon);
|