Skip to content

Commit df4f37f

Browse files
committed
reformat pass
1 parent 26fdca5 commit df4f37f

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

src/sw/downloader.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,8 +937,8 @@ class Downloader {
937937
}
938938

939939
const extraOpts = resource.extraOpts as
940-
| (ExtraOpts & { resource?: boolean })
941-
| null;
940+
| (ExtraOpts & { resource?: boolean })
941+
| null;
942942

943943
const isResource = extraOpts?.resource;
944944

@@ -961,7 +961,6 @@ class Downloader {
961961
if (!payload) {
962962
return null;
963963
}
964-
965964
} else if (resource.digest && digestOriginal) {
966965
// if exact resource in a row, and same page, then just skip instead of writing revisit
967966
if (

src/ui/app.ts

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,7 @@ class ArchiveWebApp extends ReplayWebApp {
530530
</div>
531531
<button
532532
class="button is-small"
533-
@click="${
534-
() => (this.showSettings = true)
535-
}"
533+
@click="${() => (this.showSettings = true)}"
536534
>
537535
<fa-icon .svg=${fasCog}></fa-icon>
538536
</button>
@@ -574,9 +572,7 @@ class ArchiveWebApp extends ReplayWebApp {
574572
? this.renderDownloadModal()
575573
: ""
576574
}
577-
${
578-
this.showSettings ? this.renderSettingsModal() : ""
579-
}
575+
${this.showSettings ? this.renderSettingsModal() : ""}
580576
${this.showIpfsShareFailed ? this.renderIPFSShareFailedModal() : ""}
581577
${
582578
// @ts-expect-error - TS2339 - Property 'uploadCollOpts' does not exist on type 'ArchiveWebApp'. | TS2339 - Property 'btrixOpts' does not exist on type 'ArchiveWebApp'.
@@ -1089,7 +1085,7 @@ class ArchiveWebApp extends ReplayWebApp {
10891085
enable only when archiving websites that contain Flash.
10901086
</p>
10911087
</div>
1092-
<hr/>
1088+
<hr />
10931089
<div class="is-size-6">Page override settings:</div>
10941090
<div class="field is-size-6 mt-4">
10951091
<input
@@ -1262,17 +1258,18 @@ class ArchiveWebApp extends ReplayWebApp {
12621258
<div class="has-text-centered has-text-danger">
12631259
${this.settingsError}
12641260
</div>
1265-
${this.settingsTab !== "prefs" ?
1266-
html`<div class="has-text-centered mt-4">
1267-
<button class="button is-primary" type="submit">Save</button>
1268-
<button
1269-
class="button"
1270-
type="button"
1271-
@click="${this.onCancelSettings}"
1272-
>
1273-
Cancel
1274-
</button>
1275-
</div>` : ``}
1261+
${this.settingsTab !== "prefs"
1262+
? html`<div class="has-text-centered mt-4">
1263+
<button class="button is-primary" type="submit">Save</button>
1264+
<button
1265+
class="button"
1266+
type="button"
1267+
@click="${this.onCancelSettings}"
1268+
>
1269+
Cancel
1270+
</button>
1271+
</div>`
1272+
: ``}
12761273
</form>
12771274
</wr-modal>
12781275
`;

0 commit comments

Comments
 (0)