From ba4136b3be6c6a6acb26ab7770613f643c44b2ae Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Sep 2023 12:24:08 +0200 Subject: [PATCH] wait #6303 @0.5 --- js/libs/fluidbook/fluidbook.loader.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.loader.js b/js/libs/fluidbook/fluidbook.loader.js index a5062731..1324ae9b 100644 --- a/js/libs/fluidbook/fluidbook.loader.js +++ b/js/libs/fluidbook/fluidbook.loader.js @@ -602,7 +602,7 @@ FluidbookLoader.prototype = { nb++; var i = $(this).data('id'); var url = $(this).data('image').replace(/^\.\./, 'data') + '?j=' + (new Date()).getTime(); - textures[i] = $this.loadImage($this.getURL(url),null,null,null,null, cb, 'i_' + i); + textures[i] = $this.loadImage($this.getURL(url), null, null, null, null, cb, 'i_' + i); }); if (nb === 0) { @@ -690,14 +690,13 @@ FluidbookLoader.prototype = { var i = $(this).data('id'); if (textures[i] !== undefined && textures[i] !== null) { try { - ctx.drawImage(textures[i], left, top, width, height); + ctx.drawImage(textures[i].get(0), left, top, width, height); } catch (e) { - console.warn(e); + console.warn(textures[i]); } } } }); - $('.texture_clinks[data-page="' + page + '"]').remove(); } -- 2.39.5