We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1fba33 commit 5f337c1Copy full SHA for 5f337c1
demo/src/features/remoteExtension.ts
@@ -3,10 +3,12 @@ import manifest from './remoteExtensionExample/package.json'
3
4
declare global {
5
interface Window {
6
- rootDirectory: string
+ rootDirectory?: string
7
}
8
9
10
-registerExtension(manifest, ExtensionHostKind.Remote, {
11
- path: `${window.rootDirectory}/src/features/remoteExtensionExample/`
12
-})
+if (window.rootDirectory != null) {
+ registerExtension(manifest, ExtensionHostKind.Remote, {
+ path: `${window.rootDirectory}/src/features/remoteExtensionExample/`
13
+ })
14
+}
0 commit comments