Skip to content

Commit f5e0d38

Browse files
committed
Убрано добавление / в базовый адрес
1 parent 7c49197 commit f5e0d38

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

package-lock.json

Lines changed: 20 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ document.addEventListener("DOMContentLoaded", async () => {
2020
viewer.createScene(configuration.minFOV, configuration.maxFOV);
2121
(document as any).viewer = viewer;
2222
try {
23-
if (configuration.sceneUrl && !configuration.sceneUrl.endsWith("/")) {
24-
configuration.sceneUrl += "/";
25-
}
26-
const tourResponse = await fetch(concatUrlFromPathes(configuration.sceneUrl, "tour.json"));
23+
const tourResponse = await fetch(
24+
concatUrlFromPathes(configuration.sceneUrl ?? "", "tour.json"),
25+
);
2726
if (tourResponse.status !== 200) {
2827
console.warn("Can't get scene description");
2928
return;

0 commit comments

Comments
 (0)