amend bookmarklet in readme

main
Lee Hanken 2022-01-20 13:13:07 +00:00
parent 20e08b82a2
commit 3d4cf8f829
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ javascript:(
var url="https://urltomarkdown.herokuapp.com/?url="+encodeURIComponent(location.href);
request.onreadystatechange=function() {
if(request.readyState==4&&request.status==200) {
let text = '# ' + request.getResponseHeader('X-Title') + '\n' + request.responseText;
let text = '# ' + decodeURIComponent(request.getResponseHeader('X-Title')) + '\n' + request.responseText;
location.href="simplenote://new?content="+encodeURIComponent(text);
}