Skip to content

Instantly share code, notes, and snippets.

@RangerMauve
Created March 27, 2021 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RangerMauve/10da5c6d78aef9cdd9b4057870d0211a to your computer and use it in GitHub Desktop.
Save RangerMauve/10da5c6d78aef9cdd9b4057870d0211a to your computer and use it in GitHub Desktop.
Test opening a write stream for the FileSystem API
// Execute this in Chrome Dev Tools on an HTTPs web page
// Choose a file on your FS
[fileHandle] = await window.showOpenFilePicker();
// This will throw an error on Electron 12
writable = await fileHandle.createWritable();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment