~ev/tildeprotocol

a1f95ca122d3704faeb0190dca6071c6f64b9917 — Ev Bogue 4 years ago 2e24fde
we do not need to parse json on the key
1 files changed, 1 insertions(+), 1 deletions(-)

M util.js
M util.js => util.js +1 -1
@@ 70,7 70,7 @@ function generatekey () {
async function keys () {
  try {
    if (fs) {
      var keypair = JSON.parse(fs.readFileSync(__dirname + '/keypair'))
      var keypair = fs.readFileSync(__dirname + '/keypair', 'UTF-8')
    } else {
      var keypair = await localforage.getItem('id')
      if (keypair === null) {