Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lteague committed Nov 11, 2020
1 parent a1dc804 commit 6365eb5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
11 changes: 7 additions & 4 deletions src/main/comparisonJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/components/Comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/components/EditSite.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const useStyles = makeStyles({
requestHeaders: {
gridRow: '6',
gridColumn: '5 / 7'
},
}
})

export default ({ wizard }) => {
Expand Down Expand Up @@ -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."
/>

</div>
</div>
</main>
Expand Down
11 changes: 2 additions & 9 deletions src/renderer/components/Preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,9 @@ export default () => {

<FormControlLabel
className={classes.prerelease}
control={
<Switch
name="prerelease"
checked={prerelease}
onChange={(_, val) => setPrerelease(val)}
/>
}
label="Automatically Install Prereleases?"
control={<Switch name="prerelease" checked={prerelease} onChange={(_, val) => setPrerelease(val)} />}
label="Allow Prerelease Updates?"
/>

</div>
</main>
<Footer>
Expand Down

0 comments on commit 6365eb5

Please sign in to comment.