diff options
author | Killy | 2017-10-23 16:53:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-10-23 23:43:21 +0300 |
commit | 8e01b06453db87bb6040ad53ee432c355c9c247d (patch) | |
tree | c14614453d256713eeb6ffe679b189d06396b4c6 /juick-www/src/main | |
parent | 9c4f1dfb2f923fd1bfde9c17a469d9e7dd9e9fe2 (diff) |
www: fix embedding issue on some links
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/js/killy/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/js/killy/index.js b/juick-www/src/main/js/killy/index.js index da64791e..25c37142 100644 --- a/juick-www/src/main/js/killy/index.js +++ b/juick-www/src/main/js/killy/index.js @@ -242,7 +242,7 @@ function getEmbeddableLinkTypes() { function embedLink(aNode, linkTypes, container, afterNode) { let anyEmbed = false; - let linkId = (aNode.href.replace(/^https?:/i, '').replace(/\'/i,'')); + let linkId = (aNode.href.replace(/^https?:/i, '').replace(/\'/gi,'')); let sameEmbed = container.querySelector(`*[data-linkid='${linkId}']`); // do not embed the same thing twice if (sameEmbed === null) { anyEmbed = [].some.call(linkTypes, function(linkType) { |