diff --git a/src/main/comparisonJob.js b/src/main/comparisonJob.js index 29467eb..db1f9c9 100644 --- a/src/main/comparisonJob.js +++ b/src/main/comparisonJob.js @@ -62,9 +62,12 @@ async function autoScroll(page, turbo, description) { var totalHeight = 0 var timer = setInterval(async () => { let scrollHeight = Math.max( - document.body.scrollHeight, document.documentElement.scrollHeight, - document.body.offsetHeight, document.documentElement.offsetHeight, - document.body.clientHeight, document.documentElement.clientHeight + document.body.scrollHeight, + document.documentElement.scrollHeight, + document.body.offsetHeight, + document.documentElement.offsetHeight, + document.body.clientHeight, + document.documentElement.clientHeight ) if (totalHeight < scrollHeight) { if (totalHeight % (autoScrollDistance * 7) == 0) { @@ -216,7 +219,7 @@ async function takeShot( const pieces = header.split(':') if (pieces.length > 1) { const key = pieces[0].trim() - const value = pieces.slice(1).join(":").trim() + const value = pieces.slice(1).join(':').trim() headers[key] = value } } diff --git a/src/renderer/components/Comparison.js b/src/renderer/components/Comparison.js index 1aa5649..837da82 100644 --- a/src/renderer/components/Comparison.js +++ b/src/renderer/components/Comparison.js @@ -13,7 +13,8 @@ const useStyles = makeStyles({ main: { display: 'grid', gridTemplateColumns: '75px 1fr 1fr 75px 1fr 1fr 75px', - gridTemplateRows: '2em 75px min-content 2em min-content 2em min-content 2em min-content 2em min-content 2em min-content 5em' + gridTemplateRows: + '2em 75px min-content 2em min-content 2em min-content 2em min-content 2em min-content 2em min-content 5em' }, top: { gridRow: '2', diff --git a/src/renderer/components/EditSite.js b/src/renderer/components/EditSite.js index 9deb83f..8ae51ed 100644 --- a/src/renderer/components/EditSite.js +++ b/src/renderer/components/EditSite.js @@ -42,7 +42,7 @@ const useStyles = makeStyles({ requestHeaders: { gridRow: '6', gridColumn: '5 / 7' - }, + } }) export default ({ wizard }) => { @@ -292,7 +292,6 @@ export default ({ wizard }) => { placeholder={`Cookie: authenticated=true\nX-Disable-Ads: true`} helperText="These request headers will be sent with every request." /> - diff --git a/src/renderer/components/Preferences.js b/src/renderer/components/Preferences.js index 9349c40..81a7d2c 100644 --- a/src/renderer/components/Preferences.js +++ b/src/renderer/components/Preferences.js @@ -238,16 +238,9 @@ export default () => { setPrerelease(val)} - /> - } - label="Automatically Install Prereleases?" + control={ setPrerelease(val)} />} + label="Allow Prerelease Updates?" /> -