formats.exposed/public/gif/gif.js

20 lines
335 B
JavaScript

// @ts-check
import parseHash from "../common/parseHash.js";
const main = () => {
// TODO: We may want a better UI here.
// TODO: Handle hash changes.
const parsedHash = parseHash(location.hash);
if (!parsedHash) {
location.href = "..";
return;
}
const { bytes } = parsedHash;
console.log(bytes);
};
main();