diff --git a/popup/src/App.js b/popup/src/App.js index 798600b..fa18574 100644 --- a/popup/src/App.js +++ b/popup/src/App.js @@ -1,5 +1,5 @@ /* global browser */ -import React, { useState, useEffect } from 'react'; +import React, { useState, useEffect } from "react"; function App() { const [ advanced, setAdvanced ] = useState(undefined); @@ -23,13 +23,13 @@ function App() { words: [ setWords, ["attendance", "roll number", "present"] ], regex: [ setRegex, "" ], flags: [ setFlags, "" ] - } + }; Object.keys(setterDefaultValue).forEach(key => { const [ setter, defaultValue ] = setterDefaultValue[key]; browser.storage.local.get(key) .then(value => { if (key in value) - setter(value[key]) + setter(value[key]); else { browser.storage.local.set({ [key]: defaultValue }); @@ -76,14 +76,14 @@ function App() { onChange={e => setAdvanced(e.target.checked)} checked={advanced} /> - -