From c0bbe6cd43a98f04a9258aba2b4bad48135e466d Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Mon, 27 Jul 2026 16:34:51 -0600 Subject: [PATCH] docs(app-example): fix offline viewer for embedded dataset --- Examples/Applications/OfflineLocalView/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Examples/Applications/OfflineLocalView/index.js b/Examples/Applications/OfflineLocalView/index.js index 9dc79bee0a2..ed573765668 100644 --- a/Examples/Applications/OfflineLocalView/index.js +++ b/Examples/Applications/OfflineLocalView/index.js @@ -193,6 +193,13 @@ if (userParams.url || userParams.fileURL) { // Auto setup if no method get called within 100ms setTimeout(() => { + if (!autoInit) { + return; + } + + // Load dataset if available + window?.loadDataSet?.(); + if (autoInit) { initLocalFileLoader(); } @@ -202,3 +209,6 @@ window.OfflineLocalView = { initLocalFileLoader, load, }; + +// Load dataset if available right away +window?.loadDataSet?.();