viewlogic 1.0.1 → 1.0.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.
@@ -2229,9 +2229,11 @@ var ViewLogicRouter = class {
2229
2229
  this.authManager = new AuthManager(this, this.config);
2230
2230
  }
2231
2231
  if (this.config.useComponents) {
2232
+ const currentOrigin = window.location.origin;
2233
+ const componentsBasePath = `${currentOrigin}${this.config.basePath}/components`;
2232
2234
  this.componentLoader = new ComponentLoader(this, {
2233
2235
  ...this.config,
2234
- basePath: this.config.basePath + "/components",
2236
+ basePath: componentsBasePath,
2235
2237
  cache: true,
2236
2238
  componentNames: this.config.componentNames
2237
2239
  });