From fdf25eb3ba31d4c57d50f70a1dacae6fc1c00959 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 16 May 2020 17:10:18 +0100 Subject: spell out error msg if you don't Olm.init --- javascript/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'javascript') diff --git a/javascript/README.md b/javascript/README.md index d2f1d72..bdf0224 100644 --- a/javascript/README.md +++ b/javascript/README.md @@ -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: -- cgit v1.2.3