1
0
Fork 0
mirror of https://github.com/Oreolek/TrackMeNot-Chrome.git synced 2024-06-30 21:55:08 +03:00
trackmenot/widget-script.js

12 lines
322 B
JavaScript
Raw Normal View History

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);