move olm into own lib directory

This commit is contained in:
Bruno Windels 2020-08-26 15:43:08 +02:00
parent cfd2fd9862
commit 6edbec45eb
6 changed files with 5 additions and 4 deletions

View file

@ -1 +0,0 @@
../node_modules/olm/olm.js

View file

@ -1 +0,0 @@
../node_modules/olm/olm.wasm

1
lib/olm/olm.js Symbolic link
View file

@ -0,0 +1 @@
../../node_modules/olm/olm.js

1
lib/olm/olm.wasm Symbolic link
View file

@ -0,0 +1 @@
../../node_modules/olm/olm.wasm

1
lib/olm/olm_legacy.js Symbolic link
View file

@ -0,0 +1 @@
../../node_modules/olm/olm_legacy.js

View file

@ -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();