Skip to content

simplify: use existing prefix as archivePrefix, fixes #937 #938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
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 pywb/static/loadWabac.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class WabacReplay
this.staticPrefix = staticPrefix;
this.collName = coll;
this.isRoot = coll === "$root";
this.archivePrefix = this.isRoot ? "/" : `/${this.collName}/`;
this.swScope = swScopePrefix;
this.adblockUrl = undefined;

Expand Down Expand Up @@ -51,7 +50,7 @@ class WabacReplay
baseUrl: this.prefix,
baseUrlAppendReplay: true,
noPostToGet: false,
archivePrefix: this.archivePrefix,
archivePrefix: this.prefix,
archiveMod: "ir_",
adblockUrl: this.adblockUrl,
noPostToGet: true,
Expand Down Expand Up @@ -86,6 +85,6 @@ class WabacReplay
// called by the Vue banner when the timeline is clicked
load_url(url, ts) {
const iframe = document.querySelector('#replay_iframe');
iframe.src = `${this.swScope}${this.archivePrefix}${ts}mp_/${url}`;
iframe.src = `${this.prefix}${ts}mp_/${url}`;
}
}
2 changes: 1 addition & 1 deletion pywb/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.9.0-beta.0'
__version__ = '2.9.0b1'

if __name__ == '__main__':
print(__version__)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
root_dir = pathlib.Path(__file__).parent


WABAC_SW_URL = "https://cdn.jsdelivr.net/npm/@webrecorder/[email protected].12/dist/sw.js"
WABAC_SW_URL = "https://cdn.jsdelivr.net/npm/@webrecorder/[email protected].15/dist/sw.js"

def download_wabac_sw():
print(f"Downloading {WABAC_SW_URL}")
Expand Down
Loading