beacon/static/scripts/load.js

6 lines
179 B
JavaScript

// Loads an account ID and redirects
const ls = window.localStorage;
const maybeId = ls.getItem("beacon:account-id");
if (maybeId) {
window.location.pathname = `/${maybeId}`;
}