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

Unified Diff: lib/api.js

Issue 4899447913840640: Issue 1106 - Add currentVersion Pref and compareVersions API (Closed)
Patch Set: Created Aug. 1, 2014, 12:51 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 | « include/AdblockPlus/FilterEngine.h ('k') | lib/prefs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/api.js
===================================================================
--- a/lib/api.js
+++ b/lib/api.js
@@ -167,6 +167,11 @@
getHostFromUrl: function(url)
{
return extractHostFromURL(url);
+ },
+
+ compareVersions: function(v1, v2)
+ {
+ return Services.vc.compare(v1, v2);
}
};
})();
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | lib/prefs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld