@dualbox/editor 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -228,10 +228,10 @@ class DualboxEditor {
228
228
 
229
229
  var pkgName = "@dualbox/dualbox";
230
230
  await this.loadPackage(pkgName);
231
- if (!window.DualBox && window.DualBox.start) {
232
- this.DualBox = window.DualBox = this.require(pkgName);
233
- } else {
231
+ if (window.DualBox && window.DualBox.start) {
234
232
  this.DualBox = window.DualBox;
233
+ } else {
234
+ this.DualBox = window.DualBox = this.require(pkgName);
235
235
  }
236
236
  _.each(this.DualBox.core, async corePackage => {
237
237
  await this.loadPackage(corePackage.name);