Updated bookmarklet to pass site title #118

This commit is contained in:
Andrew Barrow 2023-05-30 03:41:36 +00:00
parent d2a9501275
commit 873d90130b

View file

@ -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);