Giter Site home page Giter Site logo

Comments (3)

crittermike avatar crittermike commented on September 28, 2024

from toogles.

 avatar commented on September 28, 2024

I'm running Firefox 58.0.2 x64 / Win7 x64
I have cookies off but an exception for toogl.es (anyway toogles won't display with cookies forbidden)
Switching to dark mode does it fine, but once I close without clearing anything afterwards, toogles restarts in lite mode. As I said session cookie exception for toogl.es

I do have set Firefox's privacy.firstparty.isolate to true, but I can't conceive any relationship.

EDIT: I think I know why the dark-lite mode isn't saved.

As I said I've made a cookie exception for toogl.es, but that of a session cookie. It seems to me toogl.es writes the cookie in my LocalStorage (no classic cookie in view)... but a site authorized for session cookies only is not allowed to write in the user's LocalStorage if I remember correctly ... hence toogl.es cannot remember my choice. A normal cookie would remain for the session or always if I give the exception as always.

I'll try now with a lifetime cookie exception (no longer session only) for toogl.es and I bet it'll work...

I'll be right back.

from toogles.

 avatar commented on September 28, 2024

Bingo.
1- toogl.es sets a LocalStorage cookie
2- with a session only cookie authorization toogl.es cannot write the cookie (no LocalStorage for session cookies).
3- Giving toogl.es an 'Allow" cookie rather than 'Session-only' cookie allows toogl.es to write the user's choice in his LocalStorage

I'd prefer a normal cookie, not t mention that LocalStorage is cleared by many users.

This said, it would be nice to have Toogles start in dark mode, either by default either with a scipt.

from toogles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.