Files
wxt/templates/virtual-content-script.ts
T
Aaron Klinker ca29537bbc feat: Virtualized content script entrypoint
Generalized the background logic so it can be reused with mulitple entrypoint types
2023-06-25 10:53:35 -05:00

10 lines
190 B
TypeScript

import definition from '{{moduleId}}';
(async () => {
try {
await definition.main();
} catch (err) {
console.error('The content script crashed on startup!\n\n', err);
}
})();