[rs-commit] r22 - /redwax-signtext/trunk/src/common/signtext.js

rs-commit at redwax.eu rs-commit at redwax.eu
Mon Sep 20 10:37:11 CEST 2021


Author: minfrin at redwax.eu
Date: Mon Sep 20 10:37:10 2021
New Revision: 22

Log:
Add functionality on condition it exists.

Modified:
    redwax-signtext/trunk/src/common/signtext.js

Modified: redwax-signtext/trunk/src/common/signtext.js
==============================================================================
--- redwax-signtext/trunk/src/common/signtext.js	(original)
+++ redwax-signtext/trunk/src/common/signtext.js	Mon Sep 20 10:37:10 2021
@@ -1,3 +1,7 @@
+
+if (window.crypto.signText === 'undefined') {
+
+document.addEventListener('eu.redwax.signTextResponseInfo', function() {
 
 function stringReader(str) {
   var offset = 0;
@@ -129,3 +133,9 @@
 
 }
 
+}, {once:true});
+
+document.dispatchEvent(new CustomEvent('eu.redwax.signTextRequestInfo', { bubbles: true }));
+
+};
+



More information about the rs-commit mailing list