tin-spa 2.1.7 → 2.1.8

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.
@@ -2514,9 +2514,9 @@ class viewerDialog {
2514
2514
  this.currentFileUrl = `./assets/${this.fullPath}/${this.fileNames[this.currIndex]}`;
2515
2515
  }
2516
2516
  else {
2517
- this.currentFileUrl = `${this.httpService.apiUrl.replace("/api", "")}${this.fullPath}/${this.fileNames[this.currIndex]}`;
2517
+ this.currentFileUrl = `${this.httpService.apiUrl.replace("/api", "").replace("/api", "")}${this.fullPath}/${this.fileNames[this.currIndex]}`;
2518
2518
  }
2519
- this.currentFileUrl = this.currentFileUrl.replace("//", "/");
2519
+ // this.currentFileUrl = this.currentFileUrl.replace("//","/");
2520
2520
  console.log(this.currentFileUrl);
2521
2521
  // this.currentFileUrl = "./assets/TinasheOxygen.pdf"
2522
2522
  if (this.currentFileUrl.toLocaleLowerCase().endsWith(".pdf") || this.currentFileUrl.toLocaleLowerCase().endsWith(".jpg") || this.currentFileUrl.toLocaleLowerCase().endsWith(".jpeg")) {