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

rs-commit at redwax.eu rs-commit at redwax.eu
Sat Feb 19 22:26:43 CET 2022


Author: minfrin at redwax.eu
Date: Sat Feb 19 22:26:41 2022
New Revision: 27

Log:
Pass protocol and hostname in messages.

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	Sat Feb 19 22:26:41 2022
@@ -59,6 +59,8 @@
                                 document.dispatchEvent(new CustomEvent('eu.redwax.signTextRequest', {
                                     bubbles: true,
                                     detail: {
+                                        protocol: location.protocol,
+                                        hostname: location.hostname,
                                         contentType: 'text/plain',
                                         uuid: uuid,
                                         request: value
@@ -68,6 +70,8 @@
                                 document.dispatchEvent(new CustomEvent('eu.redwax.signTextRequest', {
                                     bubbles: true,
                                     detail: {
+                                        protocol: location.protocol,
+                                        hostname: location.hostname,
                                         uuid: uuid,
                                         request: {
                                             signText: options,
@@ -101,6 +105,8 @@
                                 document.dispatchEvent(new CustomEvent('eu.redwax.signTextRequest', {
                                     bubbles: true,
                                     detail: {
+                                        protocol: location.protocol,
+                                        hostname: location.hostname,
                                         uuid: uuid,
                                         request: true
                                     }



More information about the rs-commit mailing list