]> _ Git - fluidbook-html5.git/commitdiff
wip #6269
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 4 Oct 2023 09:00:46 +0000 (11:00 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 4 Oct 2023 09:00:46 +0000 (11:00 +0200)
js/libs/fluidbook/fluidbook.loader.js

index c4586689a68fcb891209aaa3711cce06552ae319..be9ab8e5e35e0c7e0ad69f5026d5a03e158acf1e 100644 (file)
@@ -17,18 +17,19 @@ function FluidbookLoader(fluidbook) {
     this.format = fluidbook.settings.imageFormat;
     this.imageMimeType = this.format === 'jpg' ? 'image/jpeg' : 'image/png';
     this._needSeparateTextures = [];
-    this.loadbalancing = false;
     this._loadbalancingServerURL = {};
     this._textureAssetsCache = {};
+    this.loadbalancing = false;
+    if (this.fluidbook.settings.hosting_loadbalancer) {
+        this.loadbalancing = ['s1.lb.fluidbook.com'];
+    }
 }
 
 FluidbookLoader.prototype = {
     init: function (callback) {
         let $this = this;
         if (this.fluidbook.settings.hosting_loadbalancer) {
-
-            $this.loadbalancing = ['s1.lb.fluidbook.com'];
-
+            this.loadbalancing = ['s1.lb.fluidbook.com'];
             this._loadbalancingServerURL = this.fluidbook.cache.get('_loadbalancingServerURL', {});
 
             setInterval(function () {