Fix fetch() location for copy bookmarklet

This commit is contained in:
Ian Gulliver
2024-12-03 21:22:29 -08:00
parent da7182a471
commit 98fa733365

View File

@@ -208,10 +208,10 @@ a {
<sl-tag pill variant="primary">
<a href="javascript:(async function() {
try {
const response = await fetch('{{ .writeHost }}', {
const response = await fetch('https://{{ .writeHost }}/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json'
},
body: JSON.stringify({ long: location.href }),
});