uri-list'))
                .then(x => x.text())
                .then(load);
        }
    }


    function readContents(file) {
        const reader = new FileReader();
        reader.readAsText(file);
        reader.addEventListener('loadend', () => {
            try {
                load(reader.result);
            } catch(e) {
                console.error(e);
            }
        });
    }

    function load(text) {
        const data = JSON.parse(text);
        localStorage.editMe = text;
        e