mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
parent
5449523f2a
commit
7905394b26
7 changed files with 143 additions and 134 deletions
|
@ -10,6 +10,14 @@ export function useRoute(l) {
|
|||
history.pushState({}, '', l);
|
||||
}
|
||||
|
||||
export function useWrap(txt) {
|
||||
return encodeURIComponent(txt).replaceAll('%20', '+');
|
||||
}
|
||||
|
||||
export function useUnwrap(txt) {
|
||||
return decodeURIComponent(txt).replaceAll('+', ' ');
|
||||
}
|
||||
|
||||
export function useStore() {
|
||||
try {
|
||||
return window.localStorage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue