added deviceId, ExtensionStore, working on CoursePopup
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
import { hotReloadTab } from 'src/background/util/hotReloadTab';
|
||||
import { ExtensionStore } from '../storage/ExtensionStore';
|
||||
|
||||
/**
|
||||
* Called when the extension is updated (or when the extension is reloaded in development mode)
|
||||
*/
|
||||
export default function onUpdate() {
|
||||
export default async function onUpdate() {
|
||||
await Promise.all([
|
||||
ExtensionStore.setLastUpdate(Date.now()),
|
||||
ExtensionStore.setVersion(chrome.runtime.getManifest().version),
|
||||
]);
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
hotReloadTab();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user