add note about telling olm how to find wasm file
This commit is contained in:
parent
bce4f007b1
commit
06b723db6e
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,11 @@ Note: before using any of the olm functions, you must call `Olm.init()`, and
|
|||
wait for the promise to resolve, otherwise you will get errors like:
|
||||
`Uncaught TypeError: Olm.Account is not a constructor`
|
||||
|
||||
If you get errors about failure to compile the wasm file, it is likely that Olm
|
||||
is not locating the wasm file properly. You can tell Olm where the wasm file
|
||||
is by passing a `locateFile` parameter to `Olm.init()`, for example:
|
||||
`Olm.init({locateFile: () => pathToWasmFile})`.
|
||||
|
||||
Example:
|
||||
|
||||
var alice = new Olm.Account();
|
||||
|
|
Loading…
Reference in a new issue