SuperSize: Swap web worker to match uploaded filetype
The WebAssembly web worker parses .size and .sizediff files, the JS web worker parses .ndjson files. Previously, the web worker would be set on pageload according to the load_url parameter, so if you loaded a .size file and then uploaded a .ndjson to view, the viewer would crash. This CL refreshes the web worker on each file upload. Change-Id: I182ac524bfd7049ed178bd2c6784bb0282f0ee8e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1946858Reviewed-by:Andrew Grieve <agrieve@chromium.org> Commit-Queue: Jasper Chapman-Black <jaspercb@chromium.org> Cr-Commit-Position: refs/heads/master@{#720656}
Showing
Please register or sign in to comment