Chrome Extension: Remembering a checkbox value when popup is reopened

前端 未结 3 1912
醉酒成梦
醉酒成梦 2020-12-20 01:49

Newbie here so sorry if this is pretty elementary. I\'m making an extension that simply has a checkbox/switch when loaded. It is to be unchecked the first time you open it b

3条回答
  •  -上瘾入骨i
    2020-12-20 02:15

    You would want to add a background script, that holds the state of the checkbox in a variable.

    Storing a variable is also an option.

提交回复
热议问题