Commit 98b2da62 authored by yPhil's avatar yPhil
Browse files

Bookmarklet

- encodeURIComponent()
parent 2308dd81
Pipeline #433976 passed with stage
in 1 minute and 21 seconds
......@@ -543,8 +543,7 @@ PTL.feed = {
$dataStore.data('iconhash', hash);
PTL.tab.saveTabs();
})
.catch(e => {
console.log('e: %s (%s)', e);
.catch(_e => {
$dataStore.data('iconhash', 'noicon');
PTL.tab.saveTabs();
$favIcon.attr('src', '/static/images/rss.gif');
......
......@@ -140,7 +140,7 @@ var PTL = (function() {
$('button').button();
$('.helpBookmarklet')
.attr('href', 'javascript:void(window.open("' + window.location.href + '?add=" + window.location.href))');
.attr('href', 'javascript:void(window.open("' + window.location.href + '?add="+encodeURIComponent(location.href)))');
$('body').on('click','#menuButton', function() {
PTL.sideMenu('toggle');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment