forked from mystiq/hydrogen-web
move olm into own lib directory
This commit is contained in:
parent
cfd2fd9862
commit
6edbec45eb
6 changed files with 5 additions and 4 deletions
|
@ -1 +0,0 @@
|
|||
../node_modules/olm/olm.js
|
|
@ -1 +0,0 @@
|
|||
../node_modules/olm/olm.wasm
|
1
lib/olm/olm.js
Symbolic link
1
lib/olm/olm.js
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/olm/olm.js
|
1
lib/olm/olm.wasm
Symbolic link
1
lib/olm/olm.wasm
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/olm/olm.wasm
|
1
lib/olm/olm_legacy.js
Symbolic link
1
lib/olm/olm_legacy.js
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../node_modules/olm/olm_legacy.js
|
|
@ -12,13 +12,13 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="../lib/olm.js"></script>
|
||||
<script type="text/javascript" src="../lib/olm/olm.js"></script>
|
||||
<script type="module">
|
||||
|
||||
async function main() {
|
||||
const Olm = window.Olm;
|
||||
await Olm.init({
|
||||
locateFile: () => "../lib/olm.wasm",
|
||||
locateFile: () => "../lib/olm/olm.wasm",
|
||||
});
|
||||
const alice = new Olm.Account();
|
||||
alice.create();
|
||||
|
|
Loading…
Reference in a new issue