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

Unified Diff: lib/icon.js

Issue 29326108: Issue 3014 - Export and use icon.basePath variable (Closed)
Patch Set: Created Sept. 8, 2015, 12:01 p.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
diff --git a/lib/icon.js b/lib/icon.js
index 83bfa9c75aed952372908f818e176cf33f7cb34e..6209154d63ab4ee0cce1a8ba57b5cd5ea1179309 100644
--- a/lib/icon.js
+++ b/lib/icon.js
@@ -24,9 +24,11 @@ let notificationType = null;
let animationInterval = null;
let animationStep = 0;
+exports.basePath = "icons/abp-$size";
+
function getIconPath(whitelisted)
{
- let filename = "icons/abp-$size";
+ let filename = exports.basePath;
// If the current page is whitelisted, pick an icon that indicates that
// Adblock Plus is disabled, however not when the notification icon has
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld