() {
    let input = document.createElement('input');
    input.type = 'file';
    input.onchange = _ => {
      let selectedFile = input.files[0];
      const reader = new FileReader();
      reader.addEventListener("loadend", e => {
        parent.postMessage({ pluginMessage: {
          msg: 'clippy-file-selected',
          fileName: selectedFile.name,
          contents: reader.result.toString()
        }}, '*');
      })
      reader.readAsText(selectedFile);
    };
    input.click();
  }

  function 