issues/27: cabinet patient registration on test

This commit is contained in:
Valery Petrov
2026-05-30 01:35:49 +03:00
committed by Valeriy Petrov
parent a6d9526d73
commit 0460846dac
4 changed files with 139 additions and 1 deletions
+12
View File
@@ -207,7 +207,15 @@ function countDown(options) {
};
}
function isTestContour() {
return /\.sova\.local$/i.test(location.hostname);
}
function getApiHostname() {
if (isTestContour()) {
return 'http://api.test.sova.local';
}
if (/sovamed\.ru/m.test(location.hostname)) {
return 'https://api.sovamed.ru';
}
@@ -216,6 +224,10 @@ function getApiHostname() {
}
function getHostname() {
if (isTestContour()) {
return location.origin;
}
if (/sovamed\.ru/m.test(location.hostname)) {
return 'https://cabinet.sovamed.ru';
}