Scroll to top when last visit was more than 24 hours ago#2457
Merged
kolchfa-aws merged 2 commits intomainfrom Jan 26, 2023
Merged
Scroll to top when last visit was more than 24 hours ago#2457kolchfa-aws merged 2 commits intomainfrom
kolchfa-aws merged 2 commits intomainfrom
Conversation
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
AMoo-Miki
reviewed
Jan 25, 2023
assets/js/nav-scroll.js
Outdated
| expiry: currentDate.getTime() + 24 * 60 * 60 * 1000, | ||
| } | ||
|
|
||
| localStorage.setItem(key, JSON.stringify(scroll)); |
There was a problem hiding this comment.
Do we really want this across sessions? IMO it is more appropriate to use sessionStorage for this.
Collaborator
Author
There was a problem hiding this comment.
Changed to sessionStorage. Thank you!
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
ariamarble
approved these changes
Jan 25, 2023
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
This was referenced Jan 26, 2023
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
This was referenced Jan 26, 2023
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2)
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
kolchfa-aws
added a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> (cherry picked from commit 8565bb2) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
vagimeli
pushed a commit
that referenced
this pull request
Jan 26, 2023
* Scroll to top when last visit was more than 24 hours ago Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> * Changed localStorage to sessionStorage Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
vagimeli
added a commit
that referenced
this pull request
Jan 30, 2023
…)" This reverts commit 0a55b3c.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scroll to top when last visit was more than 24 hours ago
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.