Options: Using by default json as prefered file type for loading settings (#500)

This commit is contained in:
litetex 2020-10-14 16:29:36 +02:00 committed by GitHub
parent 00e94f9ae4
commit 3ab6366994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@
const text = await new Promise(function(resolve, reject){
const input = document.createElement("input");
input.type = "file";
input.accept = "application/json";
input.addEventListener("change", function(){
if (this.files.length){
const reader = new FileReader();