Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Tarrenj's - Copy TXID automatically to the clipboard - function
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBures committed Jun 14, 2017
1 parent f279b83 commit 2848401
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"use strict";

const {ipcRenderer} = require("electron");
const {clipboard} = require('electron');
let tableify = require("tableify");

let memos = [], options = [], oldOptions = [], privTxs = [], shieldedOpts = [], transOpts = [], txs = [];
Expand Down Expand Up @@ -50,7 +51,9 @@ function showTxDetails(txid) {
`Confirmations: ${obj.confirmations}\n` +
`Fee: ${obj.fee}\n` +
`Time: ${obj.time}\n` +
`TXID: ${obj.txid}\n`;
`TXID: ${obj.txid}\n` +
`TXID automatically copied to clipboard`;
clipboard.writeText(obj.txid);
window.alert(alertText);
}

Expand Down

0 comments on commit 2848401

Please sign in to comment.