formats.exposed/public/gif/gif.js

20 lines
335 B
JavaScript
Raw Normal View History

2023-08-11 20:06:09 +00:00
// @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();