Skip to content

Commit 3cb26a0

Browse files
committed
allow also https
1 parent d86302d commit 3cb26a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/appShell.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export class AppShell extends BaseCustomWebComponentConstructorAppend {
211211
}
212212
this._getNpm.onclick = async (e) => {
213213
const pkgName = this._npmInput.value;
214-
if (pkgName.startsWith('http://')) {
214+
if (pkgName.startsWith('http://') || pkgName.startsWith('https://')) {
215215
const observedCustomElementsRegistry = new ObservedCustomElementsRegistry();
216216
try {
217217
await import(pkgName);
@@ -229,7 +229,6 @@ export class AppShell extends BaseCustomWebComponentConstructorAppend {
229229
serviceContainer.register('elementsService', elService);
230230
this._paletteTree.loadControls(serviceContainer, serviceContainer.elementsServices);
231231
}
232-
233232
observedCustomElementsRegistry.dispose();
234233
} else {
235234
let res = await this._npmPackageLoader.loadNpmPackage(pkgName, serviceContainer, this._paletteTree, loadAllImports, state => this._npmStatus.innerText = state);

0 commit comments

Comments
 (0)