diff --git a/javascript/olm_post.js b/javascript/olm_post.js index 9e0294a..fffffad 100644 --- a/javascript/olm_post.js +++ b/javascript/olm_post.js @@ -466,6 +466,7 @@ olm_exports["get_library_version"] = restore_stack(function() { Module['onRuntimeInitialized'] = function() { OLM_ERROR = Module['_olm_error'](); + olm_exports["PRIVATE_KEY_LENGTH"] = Module['_olm_pk_private_key_length'](); if (onInitSuccess) onInitSuccess(); };