Skip to content

Commit

Permalink
added try catch for initializeHotReload to not break other dev contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Dec 12, 2023
1 parent 01acb97 commit 546debc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/notebooks-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ export class NotebooksApp extends LitElement {
profilesClient: ProfilesClient;
}> {
if ((import.meta as any).env.DEV) {
await initializeHotReload();
try {
await initializeHotReload();
} catch (e) {
console.warn("Could not initialize applet hot-reloading. This is only expected to work in a We context in dev mode.")
}
}
if (isWeContext()) {
const weClient = await WeClient.connect(appletServices);
Expand Down

0 comments on commit 546debc

Please sign in to comment.