fix: improvements to quick links

This commit is contained in:
David Ralph
2021-04-15 11:26:11 +01:00
parent 502f1683e2
commit f874f2a54c
5 changed files with 32 additions and 6 deletions

View File

@@ -33,12 +33,14 @@ export default class Notes extends React.PureComponent {
}
componentDidMount() {
const noteContainer = document.getElementById('noteContainer');
if (localStorage.getItem('notesPinned') === 'true') {
document.getElementById('noteContainer').classList.toggle('visibilityshow');
noteContainer.classList.toggle('visibilityshow');
}
if (localStorage.getItem('refresh') === 'false') {
document.getElementById('noteContainer').style.marginLeft = '-200px';
noteContainer.style.marginLeft = '-200px';
}
}