amend bookmarklet in readme
parent
20e08b82a2
commit
3d4cf8f829
|
@ -31,7 +31,7 @@ javascript:(
|
||||||
var url="https://urltomarkdown.herokuapp.com/?url="+encodeURIComponent(location.href);
|
var url="https://urltomarkdown.herokuapp.com/?url="+encodeURIComponent(location.href);
|
||||||
request.onreadystatechange=function() {
|
request.onreadystatechange=function() {
|
||||||
if(request.readyState==4&&request.status==200) {
|
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);
|
location.href="simplenote://new?content="+encodeURIComponent(text);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue