aboutsummaryrefslogtreecommitdiff
path: root/javascript/olm_post.js
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-08-31 10:50:33 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-08-31 10:50:33 -0400
commit89050dc0b68f0d5f1bf9f9f386f7c2f4ac043f4f (patch)
tree61924e97eca085bbe944e837652ec4250198c2a7 /javascript/olm_post.js
parenta0284c2ba36ac8433ea752e93b4a0a331a3f0c0b (diff)
allow some things to be Uint8Array, and fix some TypeScript declarations
Diffstat (limited to 'javascript/olm_post.js')
-rw-r--r--javascript/olm_post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/olm_post.js b/javascript/olm_post.js
index e204f30..439041a 100644
--- a/javascript/olm_post.js
+++ b/javascript/olm_post.js
@@ -11,7 +11,7 @@ function stack(size_or_array) {
}
function array_from_string(string) {
- return intArrayFromString(string, true);
+ return string instanceof Uint8Array ? string : intArrayFromString(string, true);
}
function random_stack(size) {