Added requested changes to fix errors.

pull/99/head
AaronCoplan 2017-12-20 22:33:59 -05:00
rodzic 686adb3b62
commit 2bc104479c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2D904C521DB00D86
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -27,13 +27,13 @@ var data = {
encrypted: encryptedMessage,
crypto_tag: SCRIPT_TAG,
embed: namedArgs.embed != null ? namedArgs.embed : false,
outputFilePath: namedArgs.output != null ? namedArgs.output : namedArgs.input.replace('.html', '') + "_encrypted.html"
outputFilePath: namedArgs.output != null ? namedArgs.output : namedArgs.input.replace(/\.html$/, '') + "_encrypted.html"
};
if(data.embed){
try{
var embedContents = FileSystem.readFileSync('crypto-js.min.js', 'utf8');
data["crypto_tag"] = '<script>' + txt + '</script>';
data["crypto_tag"] = '<script>' + embedContents + '</script>';
genFile(data);
}catch(e){
console.log("Failure: embed file does not exist!");