Skip to content

Commit 8a18722

Browse files
author
Pandora
committed
Is it better on mobile?
1 parent b8a620c commit 8a18722

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bazaar/static/js/project.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function hashfile(file_selector, upload_btn, report_btn) {
2020
return readbinaryfile(file_selector.files[0])
2121
.then(function (result) {
2222
result = new Uint8Array(result);
23-
return window.crypto.subtle.digest('SHA-256', result);
23+
return crypto.subtle.digest('SHA-256', result);
2424
}).then(function (result) {
2525
result = new Uint8Array(result);
2626
const hash = Uint8ArrayToHexString(result);

bazaar/templates/front/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h3 class=" text-white">Mobile threat intelligence for the masses</h3>
4949
</div>
5050
<div class="control-group mt-1">
5151
<div class="controls">
52-
<button type="submit" class="btn btn-primary" id="upload_btn" style="display: none">
52+
<button type="submit" class="btn btn-primary" id="upload_btn">
5353
Upload
5454
</button>
5555
<a href="#" id="show_report_btn" style="display: none" class="btn btn-primary">

0 commit comments

Comments
 (0)