From 45d366faccfd94d7b0670dee88a86c2e72872128 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 12 Jul 2024 08:16:51 +0200 Subject: [PATCH] feat: BASE_URL in contextMenuUtil.js importiert --- utils/contextMenuUtils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/contextMenuUtils.js b/utils/contextMenuUtils.js index 4b7039ebb..039d0c971 100644 --- a/utils/contextMenuUtils.js +++ b/utils/contextMenuUtils.js @@ -1,4 +1,5 @@ // contextMenuUtils.js +import { BASE_URL } from "../config/urls"; export function addContextMenuToMarker(marker) { marker.unbindContextMenu(); // Entferne das Kontextmenü, um Duplikate zu vermeiden @@ -21,6 +22,8 @@ export function addContextMenuToMarker(marker) { } // Funktion zum Öffnen in einem neuen Tab export function openInNewTab(e, marker) { + const baseUrl = BASE_URL; + console.log("baseUrl:", baseUrl); if (marker && marker.options && marker.options.link) { //console.log("Marker data:", baseUrl + marker.options.link); window.open(baseUrl + marker.options.link, "_blank");