diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-05-05 20:43:20 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-05-05 20:43:20 -0500 |
| commit | 4fda4eef9b58504a1352a777f7d9b6826a26559e (patch) | |
| tree | d52befdf1d95a87297235da3e0a798e611c456d0 /src/pages.js | |
| parent | 832ee186bd8477eff88560d4fddf643ec608d4b6 (diff) | |
| download | immich-frame-4fda4eef9b58504a1352a777f7d9b6826a26559e.tar.xz immich-frame-4fda4eef9b58504a1352a777f7d9b6826a26559e.zip | |
move softredirect to page class
Diffstat (limited to 'src/pages.js')
| -rw-r--r-- | src/pages.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pages.js b/src/pages.js index 7e0bdbc..3a02454 100644 --- a/src/pages.js +++ b/src/pages.js @@ -16,6 +16,11 @@ export default class Page { Page.currentPage = page } + static softRedirect(path) { + window.history.pushState({}, "", path) + Page.pathnameCallback() + } + constructor(pageContainer, endpoint, f_initialize) { Page.pages[endpoint] = this |
