浏览代码

Fix checking for errors from Promise.allSettled.

Jason Grout 4 年之前
父节点
当前提交
cde6220b38
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      dev_mode/index.js
  2. 1 1
      examples/federated/core_package/index.js

+ 1 - 1
dev_mode/index.js

@@ -97,7 +97,7 @@ async function main() {
   }));
 
   extensions.forEach(p => {
-    if (p.status === "error") {
+    if (p.status === "rejected") {
       // There was an error loading the component
       console.error(p.reason);
       return;

+ 1 - 1
examples/federated/core_package/index.js

@@ -88,7 +88,7 @@ async function main() {
   }));
 
   extensions.forEach(p => {
-    if (p.status === "error") {
+    if (p.status === "rejected") {
       // There was an error loading the component
       console.error(p.reason);
       return;