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

Unified Diff: lib/adblockplus_compat.js

Issue 8681104: Fixed: First-run page opens twice on a new install (Closed)
Patch Set: Created Oct. 30, 2012, 9:24 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/adblockplus_compat.js
===================================================================
--- a/lib/adblockplus_compat.js
+++ b/lib/adblockplus_compat.js
@@ -149,17 +149,18 @@ require.scopes.io =
readFromFile: function(file, decode, listener, callback, timeLineID)
{
if ("spec" in file && /^defaults\b/.test(file.spec))
{
// Code attempts to read the default patterns.ini, we don't have that.
// Make sure to execute first-run actions instead.
callback(null);
- addSubscription("0.1");
+ delete localStorage.currentVersion;
+ require("filterNotifier").FilterNotifier.triggerListeners("load");
return;
}
this._getFileEntry(file, false, function(fs, fileEntry)
{
fileEntry.file(function(file)
{
var reader = new FileReader();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld