Skip to content

Commit

Permalink
Deploying.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazzkiq committed Sep 6, 2018
1 parent 90cdeea commit 8f9d21e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
21 changes: 15 additions & 6 deletions app.js
Expand Up @@ -13269,34 +13269,43 @@ function data() {
};

function actionDownloadTextFile() {
const publicAddress = window.store.get('wallets')[0].publicAddress;
const privateKey = window.store.get('wallets')[0].privateKey;

const text = `
Date issued: ${new Date()}

Public Address: ${window.store.get('publicAddress')}
Public Address: ${publicAddress}

Private Key (DO NOT SHARE): ${window.store.get('privateKey')}
Private Key (DO NOT SHARE): ${privateKey}
`;

return URL.createObjectURL(new Blob([text], {type: 'text/plain'}));
};

function actionGetMailBody() {
const publicAddress = window.store.get('wallets')[0].publicAddress;
const privateKey = window.store.get('wallets')[0].privateKey;

const text = `
Date issued: ${new Date()}

Public Address: ${window.store.get('publicAddress')}
Public Address: ${publicAddress}

Private Key (DO NOT SHARE): ${window.store.get('privateKey')}
Private Key (DO NOT SHARE): ${privateKey}
`;

return text;
};

function actionDownloadJSONFile() {
const publicAddress = window.store.get('wallets')[0].publicAddress;
const privateKey = window.store.get('wallets')[0].privateKey;

const data = {
dateIssued: new Date(),
publicAddress: window.store.get('publicAddress'),
privateKey: window.store.get('privateKey')
publicAddress: publicAddress,
privateKey: privateKey
};

return URL.createObjectURL(new Blob([JSON.stringify(data)], {type: 'application/json'}));
Expand Down
2 changes: 1 addition & 1 deletion app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sw.js
Expand Up @@ -2,7 +2,7 @@
* For each new deploy, change this version
*/

const PRECACHE = '0.3';
const PRECACHE = '0.4';
const RUNTIME = 'PEERCOIN-WALLET-GENERATOR';


Expand Down

0 comments on commit 8f9d21e

Please sign in to comment.