Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/sw/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,8 @@ class Downloader {
}

const extraOpts = resource.extraOpts as
| (ExtraOpts & { resource?: boolean })
| null;
| (ExtraOpts & { resource?: boolean })
| null;

const isResource = extraOpts?.resource;

Expand All @@ -961,7 +961,6 @@ class Downloader {
if (!payload) {
return null;
}

} else if (resource.digest && digestOriginal) {
// if exact resource in a row, and same page, then just skip instead of writing revisit
if (
Expand Down
33 changes: 15 additions & 18 deletions src/ui/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,7 @@ class ArchiveWebApp extends ReplayWebApp {
</div>
<button
class="button is-small"
@click="${
() => (this.showSettings = true)
}"
@click="${() => (this.showSettings = true)}"
>
<fa-icon .svg=${fasCog}></fa-icon>
</button>
Expand Down Expand Up @@ -574,9 +572,7 @@ class ArchiveWebApp extends ReplayWebApp {
? this.renderDownloadModal()
: ""
}
${
this.showSettings ? this.renderSettingsModal() : ""
}
${this.showSettings ? this.renderSettingsModal() : ""}
${this.showIpfsShareFailed ? this.renderIPFSShareFailedModal() : ""}
${
// @ts-expect-error - TS2339 - Property 'uploadCollOpts' does not exist on type 'ArchiveWebApp'. | TS2339 - Property 'btrixOpts' does not exist on type 'ArchiveWebApp'.
Expand Down Expand Up @@ -1089,7 +1085,7 @@ class ArchiveWebApp extends ReplayWebApp {
enable only when archiving websites that contain Flash.
</p>
</div>
<hr/>
<hr />
<div class="is-size-6">Page override settings:</div>
<div class="field is-size-6 mt-4">
<input
Expand Down Expand Up @@ -1262,17 +1258,18 @@ class ArchiveWebApp extends ReplayWebApp {
<div class="has-text-centered has-text-danger">
${this.settingsError}
</div>
${this.settingsTab !== "prefs" ?
html`<div class="has-text-centered mt-4">
<button class="button is-primary" type="submit">Save</button>
<button
class="button"
type="button"
@click="${this.onCancelSettings}"
>
Cancel
</button>
</div>` : ``}
${this.settingsTab !== "prefs"
? html`<div class="has-text-centered mt-4">
<button class="button is-primary" type="submit">Save</button>
<button
class="button"
type="button"
@click="${this.onCancelSettings}"
>
Cancel
</button>
</div>`
: ``}
</form>
</wr-modal>
`;
Expand Down
Loading