spell out error msg if you don't Olm.init

matthew/js-fixes
Matthew Hodgson 2020-05-16 17:10:18 +01:00
parent 83bf351a34
commit fdf25eb3ba
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ Olm
===
Note: before using any of the olm functions, you must call `Olm.init()`, and
wait for the promise to resolve.
wait for the promise to resolve, otherwise you will get errors like:
`Uncaught TypeError: Olm.Account is not a constructor`
Example: