mirror of
https://github.com/mue/mue.git
synced 2026-07-21 07:54:13 +02:00
fix: various bug fixes and refactor search settings
This commit is contained in:
@@ -22,20 +22,7 @@ export default class Widgets extends React.PureComponent {
|
||||
}
|
||||
|
||||
enabled(key) {
|
||||
const stringValue = localStorage.getItem(key);
|
||||
let enabled = true;
|
||||
|
||||
if (stringValue !== null) {
|
||||
if (stringValue === 'true') {
|
||||
enabled = true;
|
||||
}
|
||||
|
||||
if (stringValue === 'false') {
|
||||
enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
return enabled;
|
||||
return (localStorage.getItem(key) === 'true');
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
Reference in New Issue
Block a user