feature (state): revamp state management via indexedDB

This commit is contained in:
Mickael Kerjean
2022-10-11 00:02:54 +11:00
parent 88bd7d67dc
commit 456937d0cd
8 changed files with 45 additions and 36 deletions

View File

@ -36,19 +36,6 @@ export function absoluteToRelative(from, to) {
return r;
}
export function currentShare() {
return findParams("share");
}
export function currentBackend() {
return "";
}
export function findParams(p) {
return new window.URL(location.href).searchParams.get(p) || "";
}
export function appendShareToUrl(link) {
let url = new window.URL(location.href);
const share = url.searchParams.get("share");