From: Vincent Vanwaelscappel Date: Wed, 10 Jul 2019 17:21:13 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3cbcd41f2b5abb32fd5989a5d42ff7f05e61b622;p=fluidbook-html5.git . --- diff --git a/js/libs/fluidbook/fluidbook.share.js b/js/libs/fluidbook/fluidbook.share.js index df8bdc3a..6976d4f4 100644 --- a/js/libs/fluidbook/fluidbook.share.js +++ b/js/libs/fluidbook/fluidbook.share.js @@ -80,12 +80,12 @@ FluidbookShare.prototype = { } var e = url.split(':'); - if (e.length == 1) { + if (e.length === 1) { return relativeToAbsoluteURL(url); } else { - if (e[0] == 'http' || e[0] == 'https') { + if (e[0] === 'http' || e[0] === 'https') { return url - } else if (e[0] == 'article') { + } else if (e[0] === 'article') { return relativeToAbsoluteURL('./p/' + this.getSEOArticle(e[1]).url); } }