Skip to content

Commit

Permalink
fix: add missing HMR_ID for reload.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykKuniczak committed Dec 18, 2024
1 parent 1647ea6 commit bce0233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hmr/lib/injections/reload.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import initClient from '../initializers/initClient.js';
import { HMR_ID } from '../consts.js';

(() => {
const reload = () => {
chrome.runtime.reload();
};

initClient({
// @ts-expect-error That's because of the dynamic code loading
id: __HMR_ID,
id: HMR_ID,
onUpdate: reload,
});
})();

0 comments on commit bce0233

Please sign in to comment.