mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
27 lines
672 B
JavaScript
Executable File
27 lines
672 B
JavaScript
Executable File
let accountsUrl = window.location.origin + "/accounts";
|
|
let backendUrl =
|
|
window.location.hostname === "localhost"
|
|
? "http://localhost:3002"
|
|
: window.location.origin + "/api";
|
|
|
|
//eslint-disable-next-line
|
|
function loginUrl(extra) {
|
|
if (extra) {
|
|
window.location.href = `${accountsUrl}/login${extra}`;
|
|
} else {
|
|
window.location.href = `${accountsUrl}/login`;
|
|
}
|
|
}
|
|
//eslint-disable-next-line
|
|
function registerUrl(params) {
|
|
if (params) {
|
|
window.location.href = `${accountsUrl}/register${params}`;
|
|
} else {
|
|
window.location.href = `${accountsUrl}/register`;
|
|
}
|
|
}
|
|
//eslint-disable-next-line
|
|
function formUrl() {
|
|
return `${backendUrl}/lead/`;
|
|
}
|