ui: add back support for HAR, WBN loading, remove 'try again' for non-embed (won't work with local files)

This commit is contained in:
Ilya Kreymer
2020-07-09 21:16:06 -07:00
parent 3c06dcddbc
commit 46288c2b5b
5 changed files with 22 additions and 24 deletions
+2 -2
View File
@@ -127,11 +127,11 @@ class Chooser extends LitElement
<p class="control is-expanded">
<input class="file-name input" type="text"
name="filename" id="filename"
pattern="((file|http|https|s3):\/\/.*\.(warc|warc.gz|zip|wacz))|(googledrive:\/\/.+)"
pattern="((file|http|https|s3):\/\/.*\.(warc|warc.gz|zip|wacz|har|wbn))|(googledrive:\/\/.+)"
.value="${this.fileDisplayName}"
@input="${this.onInput}"
autocomplete="off"
placeholder="Enter a URL or click 'Choose File' to select a WARC or WACZ archive source">
placeholder="Enter a URL or click 'Choose File' to select a WARC, WACZ, HAR or WBN archive source">
</p>
<div class="control">
<button type="submit" class="button is-hidden-mobile is-primary">Load</button>