From 8e01b06453db87bb6040ad53ee432c355c9c247d Mon Sep 17 00:00:00 2001 From: Killy Date: Mon, 23 Oct 2017 16:53:14 +0300 Subject: www: fix embedding issue on some links --- juick-www/src/main/js/killy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3