]> _ Git - fluidbook-html5.git/commitdiff
wait #6269
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Oct 2023 12:50:45 +0000 (14:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Oct 2023 12:50:45 +0000 (14:50 +0200)
js/libs/fluidbook/fluidbook.loader.js

index be9ab8e5e35e0c7e0ad69f5026d5a03e158acf1e..8a22482cb413f5709d5463472b962b8455caa0c5 100644 (file)
@@ -795,12 +795,12 @@ FluidbookLoader.prototype = {
         });
     },
 
-    getURL(url) {
+    getURL(url) {s1.lb.fluidbook.com
         if (!this.loadbalancing) {
             return url;
         }
 
-        if (this._loadbalancingServerURL[url] === undefined || this.loadbalancing.indexOf(this._loadbalancingServerURL[url]) >= 0) {
+        if (this._loadbalancingServerURL[url] === undefined || this.loadbalancing.indexOf(this._loadbalancingServerURL[url]) === -1) {
             this._loadbalancingServerURL[url] = this.loadbalancing[Math.floor(Math.random() * this.loadbalancing.length)];
         }
         return 'https://' + this._loadbalancingServerURL[url] + '/' + this.fluidbook.settings.id + '_' + this.fluidbook.settings.hash + '/' + url;