Reader: expose the reader object globally

Makes it easier for debugging or exploring the API in the console
This commit is contained in:
John Factotum
2022-11-04 11:00:18 +00:00
committed by GitHub
parent 6b553eb89c
commit b1ac5a943f
+1
View File
@@ -298,6 +298,7 @@ class Reader {
const open = async file => {
document.body.removeChild($('#drop-target'))
const reader = new Reader()
globalThis.reader = reader
await reader.open(file)
}