fix: marketplace background settings, reset button, intervals

This commit is contained in:
David Ralph
2021-07-18 15:54:45 +01:00
parent 2d7e138b2f
commit b426041598
5 changed files with 8 additions and 6 deletions

View File

@@ -349,7 +349,7 @@ export default class Background extends React.PureComponent {
}
const interval = localStorage.getItem('backgroundchange');
if (interval && interval !== 'refresh') {
if (interval && interval !== 'refresh' && localStorage.getItem('backgroundType') === 'api') {
Interval(() => {
try {
document.getElementById('backgroundImage').classList.remove('fade-in');

View File

@@ -224,7 +224,7 @@ export default class Quote extends React.PureComponent {
});
const interval = localStorage.getItem('quotechange');
if (interval && interval !== 'refresh') {
if (interval && interval !== 'refresh' && localStorage.getItem('quoteType') === 'api') {
Interval(() => {
this.setZoom();
this.getQuote();