Fixes in Client.js and BankLetter.js

Add DOMParser constant in Client.js
Fix ebicsRequest function in Client.js
Some clean up in Client.js
Fix registerHelper sha256 in BankLetters.js
This commit is contained in:
Vladislav Hristov
2018-05-30 14:33:46 +03:00
parent 1f947ff148
commit e12f1f7ec1
2 changed files with 4 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ module.exports = class BankLetter {
});
handlebars.registerHelper("sha256", (k) => {
const digest = Buffer(k.publicDigest(), 'base64').toString('HEX');
const digest = Buffer.from(k.publicDigest(), 'base64').toString('HEX');
return digest.toUpperCase().match(/.{1,2}/g).join(' ');
});