v0.0.3 hotfix on page refreshes / redirects within same tab
Change-Id: Ib2194195661c462b40552386aeaaa3dd6e760efd
diff --git a/release-notes.md b/release-notes.md
index f9a9ed0..949e7dd 100644
--- a/release-notes.md
+++ b/release-notes.md
@@ -1,3 +1,7 @@
+#### v0.0.3
+
+- Hotfix
+
#### v0.0.2
- Remove restriction on gerrit sites (some features won't work if its not a valid gerrit site)
diff --git a/src/background.ts b/src/background.ts
index f68db52..a190deb 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -227,6 +227,10 @@
});
}
+// check this so extension always have the right status
+// even after page refreshes / reloads etc
+setInterval(() => checkCurrentTab(), 1000);
+
// when removed, clear
chrome.tabs.onRemoved.addListener(tabId => {
TabStates.delete(tabId);
diff --git a/src/manifest.json b/src/manifest.json
index d21cbd9..6b1e22c 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Gerrit FE Dev Helper",
"description": "This extension can help you development on gerrit sites, frontend specifically",
- "version": "0.0.2",
+ "version": "0.0.3",
"browser_action": {
"default_icon": "gray-32.png",
"default_title": "Gerrit FE Dev Helper"