Skip to content

Commit

Permalink
fix(popup): decode mouseover link so it's easier for humans to read
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Oct 30, 2018
1 parent 6926d00 commit 144312d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const renderGroupVideo = (group, video) => {

const link = (selector, opts, children) => {
if (!opts.href) { return m(selector, { href: '#', ...opts}, children); }
let url = opts.href.replace(/^https?:\/\/(www\.)?/, '');
let url = decodeURIComponent(opts.href.replace(/^https?:\/\/(www\.)?/, ''));
if (opts.target === '_blank') { url += ' ⇗'; }
let el;
return m(selector, {
Expand Down

0 comments on commit 144312d

Please sign in to comment.