Removes WBN file options

WBN files are unsupported and don't work but are still allowed to be selected by users and are still displayed as valid options.

No longer!
This commit is contained in:
Henry Wilkinson
2024-03-19 12:05:51 -04:00
parent 7213a085a0
commit d276609ffe
+3 -4
View File
@@ -29,12 +29,11 @@ export class Chooser extends LitElement {
showOpenFilePickerOptions = { showOpenFilePickerOptions = {
types: [ types: [
{ {
description: "WARC, WACZ, HAR and WBN Files", description: "WARC, WACZ, and HAR Files",
accept: { accept: {
"application/warc": [".warc", ".gz"], "application/warc": [".warc", ".gz"],
"application/har": [".har"], "application/har": [".har"],
"application/wacz": [".wacz"], "application/wacz": [".wacz"],
"application/wbn": [".wbn"],
"application/json": [".json"], "application/json": [".json"],
}, },
}, },
@@ -286,13 +285,13 @@ export class Chooser extends LitElement {
type="text" type="text"
name="filename" name="filename"
id="filename" id="filename"
pattern="((file|http|https|ipfs|s3)://.*.(warc|warc.gz|zip|wacz|har|wbn|json)([?#].*)?)|(googledrive://.+)|(ssb://.+)" pattern="((file|http|https|ipfs|s3)://.*.(warc|warc.gz|zip|wacz|har|json)([?#].*)?)|(googledrive://.+)|(ssb://.+)"
.value="${this.fileDisplayName}" .value="${this.fileDisplayName}"
@input="${this.onInput}" @input="${this.onInput}"
autocomplete="off" autocomplete="off"
placeholder="${this.newFullImport placeholder="${this.newFullImport
? "Click 'Choose File' to select a local archive to import" ? "Click 'Choose File' to select a local archive to import"
: "Enter a URL or click 'Choose File' to select a WARC, WACZ, HAR or WBN archive source"}" : "Enter a URL or click 'Choose File' to select a WARC, WACZ, or HAR file"}"
/> />
</p> </p>
<div class="control"> <div class="control">