File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
packages/sfc-playground/src Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ async function copyLink() {
41
41
alert (' Sharable URL has been copied to clipboard.' )
42
42
}
43
43
44
+ function openGithub() {
45
+ window .open (' https://github.com/vuejs/core/tree/main/packages/sfc-playground' , ' _blank' )
46
+ }
47
+
44
48
function toggleDark() {
45
49
const cls = document .documentElement .classList
46
50
cls .toggle (' dark' )
@@ -149,13 +153,8 @@ async function fetchVersions(): Promise<string[]> {
149
153
>
150
154
<Download />
151
155
</button >
152
- <button title =" View on GitHub" class =" github" >
153
- <a
154
- href =" https://github.com/vuejs/core/tree/main/packages/sfc-playground"
155
- target =" _blank"
156
- >
157
- <GitHub />
158
- </a >
156
+ <button title =" View on GitHub" class =" github" @click =" openGithub" >
157
+ <GitHub />
159
158
</button >
160
159
</div >
161
160
</nav >
You can’t perform that action at this time.
0 commit comments