]> _ Git - fluidbook-html5.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Jul 2019 17:21:13 +0000 (19:21 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 10 Jul 2019 17:21:13 +0000 (19:21 +0200)
js/libs/fluidbook/fluidbook.share.js

index df8bdc3a361921af1a530165826f9c29c722d8de..6976d4f465b8a3571ac2a92f0c03c3a279a9ded9 100644 (file)
@@ -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);
             }
         }