Fix fetch() location for copy bookmarklet
This commit is contained in:
@@ -208,10 +208,10 @@ a {
|
|||||||
<sl-tag pill variant="primary">
|
<sl-tag pill variant="primary">
|
||||||
<a href="javascript:(async function() {
|
<a href="javascript:(async function() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('{{ .writeHost }}', {
|
const response = await fetch('https://{{ .writeHost }}/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ long: location.href }),
|
body: JSON.stringify({ long: location.href }),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user