Files
AutistMask/src/popup/views/receive.js
sneak 21fe854fa4
All checks were successful
check / check (push) Successful in 17s
Add address-token detail view for per-token transaction filtering
Clicking a token balance on the address detail view navigates to a
focused view showing only that token's transactions. Send pre-selects
and locks the token dropdown, Receive shows an ERC-20 warning for
non-ETH tokens, and all back buttons return to the correct parent view.
2026-02-27 11:26:59 +07:00

23 lines
588 B
JavaScript

const { $, showFlash } = require("./helpers");
const { state } = require("../../shared/state");
function init(ctx) {
$("btn-receive-copy").addEventListener("click", () => {
const addr = $("receive-address").textContent;
if (addr) {
navigator.clipboard.writeText(addr);
showFlash("Copied!");
}
});
$("btn-receive-back").addEventListener("click", () => {
if (state.selectedToken) {
ctx.showAddressToken();
} else {
ctx.showAddressDetail();
}
});
}
module.exports = { init };