We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 287bd99 commit 62e71b5Copy full SHA for 62e71b5
packages/sfc-playground/src/Header.vue
@@ -41,7 +41,12 @@ function resetVueVersion() {
41
expanded.value = false
42
}
43
44
-async function copyLink() {
+async function copyLink(e: MouseEvent) {
45
+ if (e.metaKey) {
46
+ // hidden logic for going to local debug from play.vuejs.org
47
+ window.location.href = 'http://localhost:5173/' + window.location.hash
48
+ return
49
+ }
50
await navigator.clipboard.writeText(location.href)
51
alert('Sharable URL has been copied to clipboard.')
52
@@ -63,7 +68,7 @@ onMounted(async () => {
63
68
if (document.activeElement?.tagName === 'IFRAME') {
64
69
65
70
66
- });
71
+ })
67
72
})
73
74
async function fetchVersions(): Promise<string[]> {
0 commit comments