adjust service marketplace button for installation source relevance (#1571)

* adjust service marketplace button for installation source relevance

* cleanup

* show marketplace name instead of url; cleanup from PR feedback

* fix spacing

* further cleanup
This commit is contained in:
Lucy C
2022-06-27 10:09:27 -06:00
committed by GitHub
parent 83755e93dc
commit 31952afe1e
7 changed files with 134 additions and 26 deletions

View File

@@ -1,6 +1,7 @@
export async function copyToClipboard (str: string): Promise<boolean> {
export async function copyToClipboard(str: string): Promise<boolean> {
if (window.isSecureContext) {
return navigator.clipboard.writeText(str)
return navigator.clipboard
.writeText(str)
.then(() => {
return true
})