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 13084da commit 9e9f8e0Copy full SHA for 9e9f8e0
src/Microframework.ts
@@ -108,7 +108,11 @@ export class Microframework {
108
}).then(() => {
109
return this.runInSequence(this.loaders, loader => {
110
const loaderResult = loader(settings);
111
- return loaderResult instanceof Promise ? loaderResult : Promise.resolve();
+ if (loaderResult != null && typeof loaderResult.then !== "function") {
112
+ return loaderResult;
113
+ } else {
114
+ return Promise.resolve();
115
+ }
116
});
117
118
0 commit comments