diff options
| author | Adam Soltys <[email protected]> | 2022-09-28 20:21:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-28 20:21:58 -0700 |
| commit | 35d0406b927be66ba8365b2fe14baab313a8e26f (patch) | |
| tree | a79d54ea6b864abc1953a3aafcc3ff630c1b06e5 /src/lib/utils.js | |
| parent | 705080e573067d8308e2bc639891bcc183f82f06 (diff) | |
| download | coinos-ui-35d0406b927be66ba8365b2fe14baab313a8e26f.tar.gz coinos-ui-35d0406b927be66ba8365b2fe14baab313a8e26f.zip | |
withdraw page and other fixups
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index df621c4b..61e2ddac 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -1,6 +1,7 @@ import cookie from 'cookie'; import { browser } from '$app/environment'; import { toast } from '@zerodevx/svelte-toast'; +import { goto } from '$app/navigation'; export function scroll(section) { section.scrollIntoView({ behavior: 'smooth' }); @@ -144,3 +145,7 @@ export const toggleFullscreen = (el) => : el.requestFullscreen().catch(console.log); export const sats = 100000000; + +export const goBack = () => { + browser && history.go(-1); +}; |
