Skip to content

Commit 546debc

Browse files
committed
added try catch for initializeHotReload to not break other dev contexts
1 parent 01acb97 commit 546debc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/notebooks-app.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ export class NotebooksApp extends LitElement {
111111
profilesClient: ProfilesClient;
112112
}> {
113113
if ((import.meta as any).env.DEV) {
114-
await initializeHotReload();
114+
try {
115+
await initializeHotReload();
116+
} catch (e) {
117+
console.warn("Could not initialize applet hot-reloading. This is only expected to work in a We context in dev mode.")
118+
}
115119
}
116120
if (isWeContext()) {
117121
const weClient = await WeClient.connect(appletServices);

0 commit comments

Comments
 (0)