Index: lib/main.js |
=================================================================== |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -16,22 +16,18 @@ |
*/ |
Cu.import("resource://gre/modules/Services.jsm"); |
Cu.import("resource://gre/modules/FileUtils.jsm"); |
Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
// Import prefs from old branch if there are any |
let {Prefs} = require("prefs"); |
-Prefs.migrate("extensions.typed-it-collection.domainOptInAsk", "domainOptInAsk"); |
-Prefs.migrate("extensions.typed-it-collection.domainOptIn", "domainOptIn"); |
-Prefs.migrate("extensions.typed-it-collection.counter", "counter"); |
require("typoFixer"); |
-require("typoCollector"); |
// Execute first-run actions once the session is restored |
{ |
let observer = |
{ |
observe: function(subject, topic, data) |
{ |
removeHandler(); |
@@ -81,11 +77,9 @@ function onBrowserInitialized() |
if ("Browser" in window && typeof window.Browser.addTab != 'undefined') |
{ |
// window.Browser.addTab(url, true); |
// No firstrun on Fennec. |
} |
else if ("gBrowser" in window) |
window.gBrowser.loadOneTab(url, {inBackground: false}); |
} |
- |
- require("typoCollector").onBrowserInitialized(window); |
} |