diff --git a/launcher/src/components/UI/edit-page/components/edit/header/ServerDetails.vue b/launcher/src/components/UI/edit-page/components/edit/header/ServerDetails.vue index 3b806a236..cd49394db 100644 --- a/launcher/src/components/UI/edit-page/components/edit/header/ServerDetails.vue +++ b/launcher/src/components/UI/edit-page/components/edit/header/ServerDetails.vue @@ -12,8 +12,14 @@ " @mouseleave="footerStore.cursorLocation = ''" > - Mach - {{ controlStore.ServerName }} + {{ controlStore.ServerName }} + + icon
- IP - {{ controlStore.ipAddress }} + {{ controlStore.ipAddress }} icon
@@ -53,10 +58,9 @@ onMounted(() => { updateConnectionStats(); }); -const copyServerIp = () => { - let ipToCopy = controlStore.ipAddress; +const toClipboard = (stringToCopy) => { navigator.clipboard - .writeText(ipToCopy) + .writeText(stringToCopy.trim()) .then(() => { console.log("copied!"); })