From f2ff1effe64b6873f1c2eebec336f31399483c8e Mon Sep 17 00:00:00 2001 From: Matteo Visconti di Oleggio Castello Date: Wed, 3 Jul 2024 18:17:49 -0700 Subject: [PATCH] Remove old offset declaration --- cortex/webgl/resources/js/datamodel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/cortex/webgl/resources/js/datamodel.js b/cortex/webgl/resources/js/datamodel.js index fe2c17cc..38e0c2b5 100644 --- a/cortex/webgl/resources/js/datamodel.js +++ b/cortex/webgl/resources/js/datamodel.js @@ -152,7 +152,6 @@ NParray.fromURL = function(url, callback) { var length = array.dtype.BYTES_PER_ELEMENT * array.size; var increment = array._slice * array.dtype.BYTES_PER_ELEMENT || length; var offset = 10 + headerLength; - var offset = nbytes + 10; Stream(url, length, increment, offset).progress(array.update.bind(array)).done(hideload); } else if (xhr.status == 200) { // Server doesn't support partial data, returned the whole thing