Skip to content

Commit

Permalink
fix: followup of jupyter-widgets#1630, resolve instead of return Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Aug 15, 2017
1 parent c61737a commit 2715f43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/html-manager/src/htmlmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class HTMLManager extends base.ManagerBase<HTMLElement> {
} else if (moduleName === '@jupyter-widgets/output') {
resolve(outputWidgets);
} else if (this.loader !== undefined) {
return this.loader(moduleName, moduleVersion);
resolve(this.loader(moduleName, moduleVersion))
} else {
return Promise.reject(`Could not load module ${moduleName}@${moduleVersion}`)
resolve(Promise.reject(`Could not load module ${moduleName}@${moduleVersion}`))
}
}).then((module) => {
if (module[className]) {
Expand Down

0 comments on commit 2715f43

Please sign in to comment.