Skip to content

Commit

Permalink
Show "check" step when onfetching
Browse files Browse the repository at this point in the history
  • Loading branch information
roginvs committed Jan 20, 2024
1 parent 08d2f36 commit 0d12387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion os/web/fetcher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function createFetcher(
if (!data) {
throw new Error(`Internal error`);
}
onFetching(null);
onFetching(`${filePath} check`);
if (expectedSize !== undefined && expectedSize !== data.byteLength) {
onFetching(
`Error with size of ${filePath}, expected=${expectedSize} received=${data.byteLength}`,
Expand All @@ -133,6 +133,7 @@ export function createFetcher(
if (fileTransformer) {
data = fileTransformer(filePath, data);
}
onFetching(null);

return data;
};
Expand Down
2 changes: 1 addition & 1 deletion os/web/index.sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const CACHE_FILES = [
"/",
];

const VERSION = 51;
const VERSION = 52;

const ENGINE_CACHE_NAME = "engine";

Expand Down

0 comments on commit 0d12387

Please sign in to comment.