tsparticles 1.37.1 → 1.37.2

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.
@@ -3,7 +3,7 @@
3
3
  var a = factory();
4
4
  for (var i in a) (typeof exports === "object" ? exports : root)[i] = a[i];
5
5
  }
6
- })(this, (function() {
6
+ })(window, (function() {
7
7
  return function() {
8
8
  "use strict";
9
9
  var __webpack_require__ = {};
@@ -6308,6 +6308,7 @@
6308
6308
  this.zLayers = 100;
6309
6309
  this.pageHidden = false;
6310
6310
  this._sourceOptions = sourceOptions;
6311
+ this._initialSourceOptions = sourceOptions;
6311
6312
  this.retina = new Retina(this);
6312
6313
  this.canvas = new Canvas(this);
6313
6314
  this.particles = new Particles(this);
@@ -6607,6 +6608,7 @@
6607
6608
  this.drawers.set(type, drawer);
6608
6609
  }
6609
6610
  }
6611
+ this._options.load(this._initialSourceOptions);
6610
6612
  this._options.load(this._sourceOptions);
6611
6613
  this.actualOptions = new Options;
6612
6614
  this.actualOptions.load(this._options);