From ad50ac29731881bf5402a403365b960b9863a2fa Mon Sep 17 00:00:00 2001 From: Wei Ouyang Date: Mon, 8 Apr 2024 12:13:55 +0200 Subject: [PATCH] Update index.js --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 6687d6d..3ad0fa2 100644 --- a/src/index.js +++ b/src/index.js @@ -1646,6 +1646,8 @@ window.onImageJInitialized = async () => { window.onMacroResolve = resolve; // TODO: handle reject window.onMacroReject = resolve; + // fix nih sample url + macro = macro.replace(/https:\/\/imagej.nih.gov\/ij\/images\//g, 'https://imagej.net/images/') imagej.runMacro(macro, args); }); };