first version of browser extension hireflow
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const STORAGE_KEYS = ["recording", "recordingTabId"];
|
||||
|
||||
chrome.tabs.onRemoved.addListener((tabId) => {
|
||||
chrome.storage.local.get(["recording", "recordingTabId"], (data) => {
|
||||
if (data.recording && data.recordingTabId === tabId) {
|
||||
chrome.storage.local.remove(STORAGE_KEYS);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user