MCPcopy Index your code
hub / github.com/ClearURLs/Addon / changeIcon

Function changeIcon

core_js/tools.js:180–190  ·  view source on GitHub ↗

* Change the icon.

()

Source from the content-addressed store, hash-verified

178 * Change the icon.
179 */
180function changeIcon() {
181 checkOSAndroid().then((res) => {
182 if (!res) {
183 if (storage.globalStatus) {
184 browser.browserAction.setIcon({path: "img/clearurls_128x128.png"}).catch(handleError);
185 } else {
186 browser.browserAction.setIcon({path: "img/clearurls_gray_128x128.png"}).catch(handleError);
187 }
188 }
189 });
190}
191
192/**
193 * Get the badged status from the browser storage and put the value

Callers 2

deactivateOnFailureFunction · 0.85
genesisFunction · 0.85

Calls 1

checkOSAndroidFunction · 0.85

Tested by

no test coverage detected