Skip to content

Commit

Permalink
use String constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Apr 5, 2024
1 parent b2e3077 commit d8aa273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webmap/src/control/ContextMenuControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(/<x>/g, "" + x)
.replace(/<y>/g, "" + y)
.replace(/<z>/g, "" + z),
.replace(/<x>/g, String(x))
.replace(/<y>/g, String(y))
.replace(/<z>/g, String(z)),
callback: () => navigator.clipboard.writeText(coords),
});
break;
Expand Down

0 comments on commit d8aa273

Please sign in to comment.