using my boilerplate yuh
This commit is contained in:
10
src/background/events/onUpdate.ts
Normal file
10
src/background/events/onUpdate.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { hotReloadTab } from 'src/background/util/hotReloadTab';
|
||||
|
||||
/**
|
||||
* Called when the extension is updated (or when the extension is reloaded in development mode)
|
||||
*/
|
||||
export default function onUpdate() {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
hotReloadTab();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user