mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 11:57:04 +08:00
feature (state): revamp state management via indexedDB
This commit is contained in:
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user