Skip to content

Commit 919c857

Browse files
author
Tom James Holub
committed
add flowcrypt version to pgp armor | close #116
1 parent ad688a7 commit 919c857

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

FlowCrypt/src/main/assets/js/tool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3905,7 +3905,7 @@
39053905
(function ( /* EXTENSIONS AND CONFIG */ ) {
39063906

39073907
if(typeof window.openpgp !== 'undefined' && typeof window.openpgp.config !== 'undefined' && typeof window.openpgp.config.versionstring !== 'undefined' && typeof window.openpgp.config.commentstring !== 'undefined') {
3908-
window.openpgp.config.versionstring = 'CryptUp ' + (catcher.version() || '') + ' Gmail Encryption https://cryptup.org';
3908+
window.openpgp.config.versionstring = 'FlowCrypt ' + (catcher.version() || '') + ' Email Encryption: flowcrypt.com';
39093909
window.openpgp.config.commentstring = 'Seamlessly send, receive and search encrypted email';
39103910
}
39113911

FlowCrypt/src/main/java/com/flowcrypt/email/js/Js.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package com.flowcrypt.email.js;
88

99
import android.content.Context;
10+
import com.flowcrypt.email.BuildConfig;
1011
import android.os.Build;
1112
import android.text.Html;
1213
import android.text.TextUtils;
@@ -304,7 +305,7 @@ private void bindJavaMethods() {
304305
}
305306

306307
private V8Object loadJavascriptCode() throws IOException {
307-
v8.executeScript("var engine_host_version = 'Android 0.1';");
308+
v8.executeScript("var engine_host_version = 'Android " + BuildConfig.VERSION_NAME.split("_")[0] + "';");
308309
v8.executeScript(read(context.getAssets().open("js/window.js")));
309310
v8.executeScript(read(context.getAssets().open("js/openpgp.js")));
310311
v8.executeScript(read(context.getAssets().open("js/emailjs/punycode.js")));

0 commit comments

Comments
 (0)