First working build™️
This commit is contained in:
parent
25229f0385
commit
5f91dc460e
@ -38,6 +38,7 @@ function addPhrase(abbrevation, phrase) {
|
|||||||
var jsonPath = path.join(__dirname, '..', 'abbreviation_key.json');
|
var jsonPath = path.join(__dirname, '..', 'abbreviation_key.json');
|
||||||
fs.unlinkSync(jsonPath);
|
fs.unlinkSync(jsonPath);
|
||||||
fs.writeFileSync(jsonPath, jsonString, { encoding: 'utf8' }, "\t");
|
fs.writeFileSync(jsonPath, jsonString, { encoding: 'utf8' }, "\t");
|
||||||
|
console.log("Added Phrase to list. JSON now contains:" + abbreviationKey);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user