diff options
author | mantielero <josemaria.alkala@gmail.com> | 2021-06-22 06:19:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 21:19:11 -0700 |
commit | d8488e41e85c84a6b5fe687940b7fee10314d1f1 (patch) | |
tree | e975bf9eb36db9de0f358a1fbb8fb1b7f0ee2f92 | |
parent | 9d3a813fb96950631c69858e8e26b6503abd02fe (diff) | |
download | Nim-d8488e41e85c84a6b5fe687940b7fee10314d1f1.tar.gz |
readAsText supports both Blob and File (fixes #18187) (#18189)
-rw-r--r-- | lib/js/dom.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim index 2b2332020..ca325fdd2 100644 --- a/lib/js/dom.nim +++ b/lib/js/dom.nim @@ -1767,5 +1767,5 @@ since (1, 3): ## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString proc readAsDataURL*(f: FileReader, b: Blob) {.importcpp: "#.readAsDataURL(#)".} ## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL - proc readAsText*(f: FileReader, b: Blob, encoding = cstring"UTF-8") {.importcpp: "#.readAsText(#, #)".} - ## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText + proc readAsText*(f: FileReader, b: Blob|File, encoding = cstring"UTF-8") {.importcpp: "#.readAsText(#, #)".} + ## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText \ No newline at end of file |