Skip to content

Commit 06396c5

Browse files
authored
Merge pull request #2 from Lea3D/codex/fehler-beim-laden-der-argon2-bibliothek-finden
Fix library path
2 parents 94cc8a8 + 325e40c commit 06396c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ WORKDIR /usr/share/nginx/html
1616
COPY index.html style.css generator.js verifier.js ./
1717

1818
# Copy compiled Argon2 UMD and WASM from docs/dist
19-
COPY docs/dist/argon2.js docs/dist/argon2.wasm ./docs/dist/
19+
COPY docs/dist/argon2.js docs/dist/argon2.wasm docs/dist/argon2-simd.wasm ./docs/dist/
2020

2121
EXPOSE 80
2222

generator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ document.addEventListener('DOMContentLoaded', () => {
5151
init();
5252
} else {
5353
const script = document.createElement('script');
54-
script.src = 'docs/dist/argon2.js';
54+
script.src = '/docs/dist/argon2.js';
5555
script.onload = init;
5656
script.onerror = () => console.error('Failed to load argon2 library');
5757
document.head.appendChild(script);
5858
}
59-
});
59+
});

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>Argon2 Hash Verifier</h1>
5656
</div>
5757

5858
<!-- Scripts -->
59-
<script src="docs/dist/argon2.js"></script>
59+
<script src="/docs/dist/argon2.js"></script>
6060
<script src="generator.js"></script>
6161
<script src="verifier.js"></script>
6262
</body>

0 commit comments

Comments
 (0)