Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Apr 8, 2024
1 parent 722dd82 commit ad50ac2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
};
Expand Down

0 comments on commit ad50ac2

Please sign in to comment.