1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

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

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();