aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/js/src/Message.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/lang/js/src/Message.js b/lang/js/src/Message.js
index 9e7a8835..95d043ba 100644
--- a/lang/js/src/Message.js
+++ b/lang/js/src/Message.js
@@ -44,9 +44,16 @@ export class GPGME_Message {
}
set operation (op){
-
-
+ if (typeof(op) === "string"){
+ if (!this._msg){
+ this._msg = {};
+ }
+ if (!this._msg.op & permittedOperations.hasOwnProperty(op)){
+ this._msg.op = op;
+ }
+ }
}
+
get operation(){
return this._msg.op;
}