Add pattern to file chooser for ssb urls (#103)
* add pattern to chooser to match ssb:// urls * also gitignore ipfs bundle
This commit is contained in:
@@ -11,3 +11,5 @@ coverage/
|
|||||||
_site/
|
_site/
|
||||||
dist/
|
dist/
|
||||||
plugins-*/
|
plugins-*/
|
||||||
|
|
||||||
|
ipfs-core.min.js
|
||||||
|
|||||||
+1
-1
@@ -194,7 +194,7 @@ class Chooser extends LitElement
|
|||||||
<p class="control is-expanded">
|
<p class="control is-expanded">
|
||||||
<input class="file-name input" type="text"
|
<input class="file-name input" type="text"
|
||||||
name="filename" id="filename"
|
name="filename" id="filename"
|
||||||
pattern="((file|http|https|ipfs|s3):\/\/.*\.(warc|warc.gz|zip|wacz|har|wbn|json))|(googledrive:\/\/.+)"
|
pattern="((file|http|https|ipfs|s3):\/\/.*\.(warc|warc.gz|zip|wacz|har|wbn|json))|(googledrive:\/\/.+)|(ssb:\/\/.+)"
|
||||||
.value="${this.fileDisplayName}"
|
.value="${this.fileDisplayName}"
|
||||||
@input="${this.onInput}"
|
@input="${this.onInput}"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
|||||||
Reference in New Issue
Block a user