From d8aa273540a5fdd5945cd8e5b9eac4f081c082ff Mon Sep 17 00:00:00 2001 From: granny Date: Fri, 5 Apr 2024 11:13:10 -0700 Subject: [PATCH] use String constructor --- webmap/src/control/ContextMenuControl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webmap/src/control/ContextMenuControl.ts b/webmap/src/control/ContextMenuControl.ts index 67d6ffe13..1e2c1325a 100644 --- a/webmap/src/control/ContextMenuControl.ts +++ b/webmap/src/control/ContextMenuControl.ts @@ -91,9 +91,9 @@ export default class ContextMenuControl extends L.Control { case ContextMenuItemType.copyCoords: items.set('copyCoords', { label: this._pl3xmap.settings!.lang.contextMenu.copyCoords - .replace(//g, "" + x) - .replace(//g, "" + y) - .replace(//g, "" + z), + .replace(//g, String(x)) + .replace(//g, String(y)) + .replace(//g, String(z)), callback: () => navigator.clipboard.writeText(coords), }); break;