Giter Club home page Giter Club logo

Comments (4)

Rahulj9a avatar Rahulj9a commented on September 27, 2024

So we can make a button that take present values of each option and then store it in local storage and an another button that can fetch these values from storage and apply on the options, is this approach is ok?.

from dino.

Rahulj9a avatar Rahulj9a commented on September 27, 2024

Can you assign it to me,

from dino.

developer-diganta avatar developer-diganta commented on September 27, 2024

Yup something on that lines. What you can do is keep a toggle check. If it is set to true, keep the track of options selected and keep storing it in the localStorage. Also have one option to set the old settings to web page. Upon toggling that, the webpage should take the previous settings if any. Do ask if you have any doubts.

from dino.

Rahulj9a avatar Rahulj9a commented on September 27, 2024

Hey I have open a pull request regarding this issue,
but there is something Regarding toggle button: I have tried some approach but all failed, So can you help me. 1.) one was to store old settings onload in content.js and then create an action that will apply that old settings. but to doing so we have to declare variables globally and that will change most of the content.js, 2.) second one is we keep track of old settings which are changed by user, but that will create issue that if we toggle to old settings than some of settings will remain according to local storage preferences (settings which are not changed by user). like:- a user store: fontStyle:x, and fontSize:2; it goes on second website and there just change fontStyle and then trigger stored changes, and then when he try to undo those changes only fontStyle will change, fontSize will remain according to stored preferences. So for now i have not added any toggle btn. Pls. accept this pull request and i will start working on toggle issue according to your suggestion.

from dino.

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.