Skip to content

Persistent color scheme across tabs #2

@paramrathour

Description

@paramrathour

Currently, the colour scheme toggling only works within a browser tab, and switching to a new tab will reset it to the default state.
I had previously resolved this issue by using localStorage instead of sessionStorage in the mode-toggle file. Then, the colour scheme data was also accessible across tabs, leading to a consistent user experience.

Due to the Chirpy v7.2.0 update, the file linked above was refactored into a javascript module in the original template. Now, the same trick of changing data storage type is not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions