Skip to content

Commit

Permalink
Deploy to GitHub Pages 713fff4
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Oct 17, 2023
1 parent a9ff5bb commit cda6be8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion plugins/bioengine-test-run.imjoy.html
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@
self.set_output(image)

async def load_image_from_url(self, url, to="input"):
file_name = url.split("?")[0].rstrip('/').split("/")[-1]
base_url = url.split("?")[0].rstrip('/')
file_name = base_url.split("/")[-2] if base_url.endswith("/content") else base_url.split("/")[-1]
await api.log(file_name)
bytes_ = await fetch_file_content(url)
await self.load_image_from_bytes(file_name, bytes_, to=to)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/manifest.json"
},
{
"revision": "299832c994e8e938780cef41d83fcca4",
"revision": "3168003bc83e2b1cb5a634333695d69d",
"url": "/plugins/bioengine-test-run.imjoy.html"
},
{
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.39b58eefafbee8b8ae33e4f2d32ac5ab.js"
"/precache-manifest.e547bb22fbfd45d13a0d949649c6d0a8.js"
);

workbox.core.setCacheNameDetails({prefix: "bioimage"});
Expand Down

0 comments on commit cda6be8

Please sign in to comment.