Skip to content

Commit b931a17

Browse files
committed
fix: handle '.../' at end of bucketUrl
1 parent 1e2ef15 commit b931a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- S3 Bucket Explorer Version: 1.7.2 -->
1+
<!-- S3 Bucket Explorer Version: 1.7.3 -->
22

33
<!DOCTYPE html>
44
<html lang="en" style="overflow-y: auto;">
@@ -430,7 +430,7 @@ <h2 class="subtitle">{{config.subtitle}}</h2>
430430
}
431431
}
432432

433-
let url = `${config.bucketMaskUrl || config.bucketUrl}/${content.key}`
433+
let url = `${(config.bucketMaskUrl || config.bucketUrl).replace(/\/*$/,'')}/${content.key}`
434434
let installUrl = undefined
435435
if (url.endsWith('/manifest.plist') && devicePlatform_iOS()) {
436436
// generate manifest.plist install urls

0 commit comments

Comments
 (0)