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

This commit is contained in:
Matthew Hodgson 2020-05-16 17:10:18 +01:00
parent 83bf351a34
commit fdf25eb3ba

View file

@ -2,7 +2,8 @@ Olm
=== ===
Note: before using any of the olm functions, you must call `Olm.init()`, and 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: Example: