Lastenheft.js in gitignore

This commit is contained in:
ISA
2024-12-17 07:05:22 +01:00
parent de8333ff07
commit 509a80e1a9
3 changed files with 6 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ export const initializeMap = (mapRef, setMap, setOms, setMenuItemAdded, addItems
try {
if (clickedElement instanceof L.Marker || clickedElement?.options?.link) {
const link = "/talas5/devices/" + clickedElement.options.link;
const link = "http://" + window.location.hostname + "/talas5/devices/" + clickedElement.options.link;
if (link) {
console.log("Opening link in a new tab:", link);
window.open(link, "_blank");