We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5fc5e84 + f217069 commit be388cdCopy full SHA for be388cd
src/browser.ts
@@ -51,7 +51,13 @@ export function activateOpenInBrowser(
51
execute: () => {
52
const file = browser.selectedItems().next();
53
54
- const content = new H5webWidget(file.value.path);
+ // https://github.com/silx-kit/jupyterlab-h5web/issues/121
55
+ const rawPath = file.value.path as string;
56
+ const path = rawPath.startsWith('RTC:')
57
+ ? rawPath.slice(4, rawPath.length)
58
+ : rawPath;
59
+
60
+ const content = new H5webWidget(path);
61
const widget = new MainAreaWidget<H5webWidget>({ content });
62
widget.title.label = file.value.name;
63
app.shell.add(widget, 'main');
0 commit comments