Revert "Tentative fix: snackbar is sometimes uninitializated"
This reverts commit 8f72368309626bf9529c2d4e93d3c53e350eaa58.
Reason for revert: this change breaks the feature.
Change-Id: I53c5084a0fba30ce8974e72ee127aeb9674464a5
diff --git a/src/contentScripts/communityConsole/autoRefresh.js b/src/contentScripts/communityConsole/autoRefresh.js
index 64813e4..38e83f3 100644
--- a/src/contentScripts/communityConsole/autoRefresh.js
+++ b/src/contentScripts/communityConsole/autoRefresh.js
@@ -23,7 +23,6 @@
this.firstCallTimeout = null;
this.setUpHandlers();
- this.injectUpdatePrompt();
}
getStartupData() {
@@ -273,6 +272,7 @@
console.debug('autorefresh_list: starting set up...');
+ if (this.snackbar === null) this.injectUpdatePrompt();
this.isLookingForUpdates = true;
this.path = location.pathname;
this.filter = this.getFilter(this.path);