Skip to content

Commit d847662

Browse files
authored
Merge pull request #74 from penwern/replay-web-integration
build proper presigned get url
2 parents ee4bec1 + a90cbd9 commit d847662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core/Events/PreviewWarc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Shared function to handle WARC file detection and viewing
2-
function handleWarcFileAction(node) {
2+
async function handleWarcFileAction(node) {
33
console.log("Checking node for WARC compatibility:", node);
44

55
// Check if it's a WARC-compatible file
@@ -14,7 +14,7 @@ function handleWarcFileAction(node) {
1414
console.log("WARC-compatible file detected, launching viewer");
1515

1616
// Get the file URL using your existing logic
17-
const fileUrl = `${window.location.origin}/io/quarantine/${fileName}${window.location.search}`;
17+
const fileUrl = await PydioApi._PydioClient.buildPresignedGetUrl(node);
1818

1919
// Create and show the WARC options modal
2020
const optionsModal = Curate.ui.modals.curatePopup(

0 commit comments

Comments
 (0)