mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-10 06:04:15 +00:00
Updated bookmarklet to pass site title #118
This commit is contained in:
parent
d2a9501275
commit
873d90130b
1 changed files with 2 additions and 0 deletions
|
@ -1,8 +1,10 @@
|
|||
(function () {
|
||||
var bookmarkUrl = window.location;
|
||||
var bookmarkTitle = document.title;
|
||||
var applicationUrl = '{{ application_url }}';
|
||||
|
||||
applicationUrl += '?url=' + encodeURIComponent(bookmarkUrl);
|
||||
applicationUrl += '&title=' + encodeURIComponent(bookmarkTitle);
|
||||
applicationUrl += '&auto_close';
|
||||
|
||||
window.open(applicationUrl);
|
||||
|
|
Loading…
Reference in a new issue