aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/index.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-05-23 10:56:23 +0000
committerMaximilian Krambach <[email protected]>2018-05-23 10:56:23 +0000
commitf7ed80ff6a66f2c5ee6f1c3daebd597f4592733d (patch)
tree3dc2b4dde55c14825b9dfa9db7ed225db77ab9d0 /lang/js/src/index.js
parentjs: transfer encoding changes (diff)
downloadgpgme-f7ed80ff6a66f2c5ee6f1c3daebd597f4592733d.tar.gz
gpgme-f7ed80ff6a66f2c5ee6f1c3daebd597f4592733d.zip
js: remove openpgp mode
-- * After discussion, that mode is not required, and can result in being quite misleading and a maintenance hassle later on.
Diffstat (limited to 'lang/js/src/index.js')
-rw-r--r--lang/js/src/index.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/lang/js/src/index.js b/lang/js/src/index.js
index fc406c66..8527b3f3 100644
--- a/lang/js/src/index.js
+++ b/lang/js/src/index.js
@@ -20,7 +20,6 @@
import { GpgME } from "./gpgmejs";
import { gpgme_error } from "./Errors";
-import { GpgME_openpgpmode } from "./gpgmejs_openpgpjs";
import { Connection } from "./Connection";
import { defaultConf, availableConf } from "./Config";
@@ -43,11 +42,7 @@ function init(config){
reject(gpgme_error('CONN_NO_CONNECT'));
}
if (connection.isConnected === true){
- if (_conf.api_style && _conf.api_style === 'gpgme_openpgpjs'){
- resolve(new GpgME_openpgpmode(connection, _conf));
- } else {
- resolve(new GpgME(connection));
- }
+ resolve(new GpgME(connection, _conf));
} else {
reject(gpgme_error('CONN_NO_CONNECT'));
}