issues/27: cabinet patient registration on test
This commit is contained in:
committed by
Valeriy Petrov
parent
a6d9526d73
commit
0460846dac
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user