Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/icon.js

Issue 29434586: Noissue - Fix icon error when running unit tests (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created May 10, 2017, 4:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/icon.js
===================================================================
--- a/lib/icon.js
+++ b/lib/icon.js
@@ -52,22 +52,22 @@
{
opacity = opacity || 0;
let whitelisted = !!whitelistedState.get(page);
if (!notificationType || !frames)
{
if (opacity > 0.5)
{
- page.browserAction.setIcon("icons/abp-$size-notification-" +
+ page.browserAction.setIcon("/icons/abp-$size-notification-" +
notificationType + ".png");
}
else
{
- page.browserAction.setIcon("icons/abp-$size" +
+ page.browserAction.setIcon("/icons/abp-$size" +
(whitelisted ? "-whitelisted" : "") + ".png");
}
}
else
{
chrome.browserAction.setIcon({
tabId: page.id,
imageData: frames["" + opacity + whitelisted]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld