From 30c50968a218e6a8326fba041a2703fd57b119c4 Mon Sep 17 00:00:00 2001 From: MrOnosa Date: Wed, 21 Oct 2020 18:19:35 -0500 Subject: [PATCH] * Fixed reset toast in background modal. * Fixed credits dom selector I hadn't realized these bugs were in the master branch. --- src/components/modals/MainModal.jsx | 2 +- src/components/widgets/Background.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modals/MainModal.jsx b/src/components/modals/MainModal.jsx index 095ac294..73f69978 100644 --- a/src/components/modals/MainModal.jsx +++ b/src/components/modals/MainModal.jsx @@ -8,7 +8,7 @@ export default class MainModal extends React.PureComponent { constructor(...args) { super(...args); this.state = { - tab: , + tab: , settingsActive: 'active', addonsActive: '', marketplaceActive: '' diff --git a/src/components/widgets/Background.jsx b/src/components/widgets/Background.jsx index 48841117..1fcad079 100644 --- a/src/components/widgets/Background.jsx +++ b/src/components/widgets/Background.jsx @@ -34,7 +34,7 @@ export default class Background extends React.PureComponent { `${background}; -webkit-filter: blur(${localStorage.getItem('blur')}px) brightness(${brightness}%);` ); - if (credit === 'false') document.querySelector('#credits').style.display = 'none'; // Hide the credit + if (credit === 'false' && document.querySelector('#credits')) document.querySelector('#credits').style.display = 'none'; // Hide the credit } setCredit(photographer, unsplash, url) {