Switch to browserify. Basic unit tests are working.

This commit is contained in:
Michal Kolodziej
2013-05-11 21:55:48 +02:00
parent 18236ac097
commit 664ab71686
21 changed files with 3538 additions and 2253 deletions

View File

@@ -104,7 +104,7 @@ function getCheckSum(data) {
var str = "" + String.fromCharCode(c >> 16)+
String.fromCharCode((c >> 8) & 0xFF)+
String.fromCharCode(c & 0xFF);
return base64_encode(str);
return base64.encode(str);
}
/**
@@ -177,7 +177,7 @@ function dearmor(text) {
var splittedtext = text.split('-----');
var data = {
openpgp: base64_decode(
openpgp: base64.decode(
splittedtext[2]
.split('\n\n')[1]
.split("\n=")[0]