mirror of
https://github.com/hanzoai/browser.git
synced 2026-10-30 18:46:34 +00:00
16 lines
281 B
TypeScript
16 lines
281 B
TypeScript
import initClient from '../initializers/initClient';
|
|
|
|
function addReload() {
|
|
const reload = () => {
|
|
chrome.runtime.reload();
|
|
};
|
|
|
|
initClient({
|
|
// @ts-expect-error That's because of the dynamic code loading
|
|
id: __HMR_ID,
|
|
onUpdate: reload,
|
|
});
|
|
}
|
|
|
|
addReload();
|