Browse Source

try the quote thing again

pull/5/head
Aaron Parecki 7 years ago
parent
commit
d6470f1872
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      views/partials/bookmark-bookmarklet.php

+ 1
- 1
views/partials/bookmark-bookmarklet.php View File

@ -1,5 +1,5 @@
javascript:(function(){
var t;try{t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));}catch(e){t="";};
window.location="<?= Config::$base_url ?>bookmark?url="+encodeURIComponent(window.location.href)+"&content="+encodeURIComponent((t ? '"'+t+'"' : ''))+"&name="+encodeURIComponent(document.title)+"&token=<?= $this->token ?>";
window.location="<?= Config::$base_url ?>bookmark?url="+encodeURIComponent(window.location.href)+"&content="+encodeURIComponent((t == '' ? '' : '"'+t+'"'))+"&name="+encodeURIComponent(document.title)+"&token=<?= $this->token ?>";
})();

Loading…
Cancel
Save