From 20c46e181a9f5c8feddf0bb779d83c35d5769881 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 14 Aug 2023 14:39:11 +0400 Subject: [PATCH] fix: check for selection size --- index.html | 2 +- modules/dynamic/auto-update.js | 2 +- modules/io/load.js | 2 +- versioning.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9ab2fc63..090b9078 100644 --- a/index.html +++ b/index.html @@ -8007,7 +8007,7 @@ - + diff --git a/modules/dynamic/auto-update.js b/modules/dynamic/auto-update.js index 2319219c..47dc5aa2 100644 --- a/modules/dynamic/auto-update.js +++ b/modules/dynamic/auto-update.js @@ -706,7 +706,7 @@ export function resolveVersionConflicts(version) { // leftover from v1.90.02 texture.style("display", null); const textureImage = texture.select("#textureImage"); - if (textureImage) { + if (textureImage.size()) { const xlink = textureImage.attr("xlink:href"); const href = textureImage.attr("href"); const src = xlink || href; diff --git a/modules/io/load.js b/modules/io/load.js index 1f8366d2..328f56a0 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -435,7 +435,7 @@ async function parseLoadedData(data) { { // dynamically import and run auto-udpdate script const versionNumber = parseFloat(params[0]); - const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.92.02"); + const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.92.03"); resolveVersionConflicts(versionNumber); } diff --git a/versioning.js b/versioning.js index ed883322..a384b243 100644 --- a/versioning.js +++ b/versioning.js @@ -1,7 +1,7 @@ "use strict"; // version and caching control -const version = "1.92.02"; // generator version, update each time +const version = "1.92.03"; // generator version, update each time { document.title += " v" + version;