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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="text/javascript" src="../lib/olm.js"></script>
|
<script type="text/javascript" src="../lib/olm/olm.js"></script>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const Olm = window.Olm;
|
const Olm = window.Olm;
|
||||||
await Olm.init({
|
await Olm.init({
|
||||||
locateFile: () => "../lib/olm.wasm",
|
locateFile: () => "../lib/olm/olm.wasm",
|
||||||
});
|
});
|
||||||
const alice = new Olm.Account();
|
const alice = new Olm.Account();
|
||||||
alice.create();
|
alice.create();
|
||||||
|
|
Reference in a new issue