Guest User

Untitled

a guest
Nov 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. window.hwcrypto.getCertificate({lang: lang, filter: filter})
  2. .then(function(cert) {
  3. window.hwcrypto.sign(cert, {type: hashtype, hex: hash}, {lang: lang})
  4. .then(function(signature){
  5. // call jquery ajax to do some important thing
  6. $.ajax({
  7. url: 'index.php?action=very_important_action',
  8. dataType: 'html',
  9. success: function(response) {
  10. console.log(response);
  11. });
  12. });
  13. });
Add Comment
Please, Sign In to add comment