Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Sep 25, 2018
1 parent 282d57c commit 9904357
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/js/start.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*******************************************************************************
uMatrix - a browser extension to black/white list requests.
Copyright (C) 2014-2018 Raymond Hill
Copyright (C) 2014-present Raymond Hill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -52,9 +52,6 @@ var processCallbackQueue = function(queue, callback) {
var onAllDone = function() {
µm.webRequest.start();

µm.assets.addObserver(µm.assetObserver.bind(µm));
µm.scheduleAssetUpdater(µm.userSettings.autoUpdate ? 7 * 60 * 1000 : 0);

vAPI.cloud.start([ 'myRulesPane' ]);
};

Expand All @@ -74,6 +71,12 @@ var onTabsReady = function(tabs) {
var onUserSettingsLoaded = function() {
µm.loadHostsFiles();
µm.loadRecipes();

// https://github.com/uBlockOrigin/uMatrix-issues/issues/63
// Ensure user settings are fully loaded before launching the
// asset updater.
µm.assets.addObserver(µm.assetObserver.bind(µm));
µm.scheduleAssetUpdater(µm.userSettings.autoUpdate ? 7 * 60 * 1000 : 0);
};

/******************************************************************************/
Expand Down

0 comments on commit 9904357

Please sign in to comment.