aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/js/killy/index.js
diff options
context:
space:
mode:
authorGravatar Killy2017-10-23 16:53:14 +0300
committerGravatar Vitaly Takmazov2017-10-23 23:43:21 +0300
commit8e01b06453db87bb6040ad53ee432c355c9c247d (patch)
treec14614453d256713eeb6ffe679b189d06396b4c6 /juick-www/src/main/js/killy/index.js
parent9c4f1dfb2f923fd1bfde9c17a469d9e7dd9e9fe2 (diff)
www: fix embedding issue on some links
Diffstat (limited to 'juick-www/src/main/js/killy/index.js')
-rw-r--r--juick-www/src/main/js/killy/index.js2
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) {