Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yPhil
Pétrolette
Commits
98b2da62
Commit
98b2da62
authored
Jul 15, 2021
by
yPhil
Browse files
Bookmarklet
- encodeURIComponent()
parent
2308dd81
Pipeline
#433976
passed with stage
in 1 minute and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/PTL.feed.js
View file @
98b2da62
...
...
@@ -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
'
);
...
...
public/js/PTL.main.js
View file @
98b2da62
...
...
@@ -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
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment