mirror of https://github.com/gorhill/uBlock.git
Fix spurious log messages at cleanup
This commit is contained in:
parent
e762a29d30
commit
7b781248f0
|
@ -65,7 +65,7 @@ vAPI.app.restart = function() {
|
||||||
var cleanupTasks = [];
|
var cleanupTasks = [];
|
||||||
|
|
||||||
// This must be updated manually, every time a new task is added/removed
|
// This must be updated manually, every time a new task is added/removed
|
||||||
var expectedNumberOfCleanups = 7;
|
var expectedNumberOfCleanups = 6; // 7 instances of cleanupTasks.push, but one is unique to fennec, and one to desktop.
|
||||||
|
|
||||||
window.addEventListener('unload', function() {
|
window.addEventListener('unload', function() {
|
||||||
for ( var cleanup of cleanupTasks ) {
|
for ( var cleanup of cleanupTasks ) {
|
||||||
|
|
Loading…
Reference in New Issue