Skip to content

Commit

Permalink
Added a delay for the startup cleanup
Browse files Browse the repository at this point in the history
- This is to fix some issues with the cleanup not clearing some cookies right at start
  • Loading branch information
ke-d committed Jun 25, 2017
1 parent aa60126 commit a7eb831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background.js
Expand Up @@ -183,7 +183,9 @@ function onStartUp(cookieCleanup = false) {

// Do a cleanup on startup if active mode is on and if its not been called from the settings page
if (items.activeMode && cookieCleanup) {
return exposedFunctions.cleanupOperation(items.cookieCleanUpOnStartSetting, true);
setTimeout(() => {
return exposedFunctions.cleanupOperation(items.cookieCleanUpOnStartSetting, true);
}, 1250);
}
return Promise.resolve();
})
Expand Down

0 comments on commit a7eb831

Please sign in to comment.