1023ea1732
DRY up protobuf declarations and move to a slightly briefer naming convention. Also dropped some ArrayBuffer -> string conversions as ProtoBuf.js handles ArrayBuffers just fine, and in fact, more efficiently than strings. Finally, dropped the btoa() wrappers, because that incurs an extra string -> string conversion before the protobuf's internal string -> array buffer conversion. In lieu of btoa, we can simply pass in the optional string encoding argument to the protobuf's decode method, which in these cases should be 'binary'. Related: #17
47 lines
2.3 KiB
HTML
47 lines
2.3 KiB
HTML
<!--This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript" src="js-deps/nacl-common.js"></script>
|
|
<script type="text/javascript" src="js-deps/jquery.js"></script>
|
|
<script type="text/javascript" src="js-deps/CryptoJS.js"></script>
|
|
<script type="text/javascript" src="js-deps/curve255.js"></script>
|
|
<script type="text/javascript" src="js-deps/Long.min.js"></script>
|
|
<script type="text/javascript" src="js-deps/ByteBuffer.min.js"></script>
|
|
<script type="text/javascript" src="js-deps/ProtoBuf.min.js"></script>
|
|
<script type="text/javascript" src="js-deps/underscore.js"></script>
|
|
<script type="text/javascript" src="js-deps/backbone.js"></script>
|
|
<script type="text/javascript" src="js-deps/backbone.localStorage.js"></script>
|
|
<script type="text/javascript" src="js-deps/libphonenumber_api-compiled.js"></script>
|
|
|
|
<script type="text/javascript" src="js/protobufs.js"></script>
|
|
<script type="text/javascript" src="js/helpers.js"></script>
|
|
<script type="text/javascript" src="js/libphonenumber-util.js"></script>
|
|
<script type="text/javascript" src="js/webcrypto.js"></script>
|
|
<script type="text/javascript" src="js/crypto.js"></script>
|
|
<script type="text/javascript" src="js/models/messages.js"></script>
|
|
<script type="text/javascript" src="js/models/threads.js"></script>
|
|
<script type="text/javascript" src="js/api.js"></script>
|
|
<script type="text/javascript" src="js/sendmessage.js"></script>
|
|
|
|
<script type="text/javascript" src="js/chromium.js"></script>
|
|
<script type="text/javascript" src="js/background.js"></script>
|
|
</head>
|
|
<body data-name="curve25519" data-tools="pnacl" data-configs="Debug Release" data-path="nacl/pnacl/{config}">
|
|
<div id="listener"></div>
|
|
<div id="log"></div>
|
|
</body>
|
|
</html>
|