Your one-stop-cake-shop for everything Freshly Baked has to offer

fix(m): correct copy behavior

During development, I:
- used go/ rather than a host for the copied URL
- used navigator.clipboard, which can't be used outside of secure
contexts, and didn't clean up when I changed that

+1 -1
+1 -1
menu/src/html/create/success.html
··· 17 17 <p>Your new shortlink is up!</p> 18 18 <p><a href="/{from:url}">{host}/{from}</a> now goes to <a href="{to:attribute}">{to}</a></p> 19 19 <ul> 20 - <li>Access it at <a href="/{from:url}">{host}/{from}</a> (<span id="copy" text="go/{from:attribute}" onclick="navigator.clipboard.writeText(this.getAttribute('text')); ">copy</span>)</li> 20 + <li>Access it at <a href="/{from:url}">{host}/{from}</a> (<span id="copy" text="{host:attribute}/{from:attribute}">copy</span>)</li> 21 21 <li><a href="/_/create">Create another one</a></li> 22 22 <li><a href="/_/create?from={from:url}&to={to:url}&current={to:url}">Edit it</a></li> 23 23 <li><a href="/_/delete/do?from={from:url}&current={to:url}">Delete it</a></li>