aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app.js b/src/app.js
index 4912ea1..f659097 100644
--- a/src/app.js
+++ b/src/app.js
@@ -2907,11 +2907,15 @@ async function importSnapshotFile(e) {
// sits just before boot so every helper it captures is defined; the hooks are
// only invoked at runtime (first render happens after loadLocale below).
const ctx = {
- h, ui, render, wallet, toast, copyBtn, pasteBtn, blankSend, goBack, openExternal,
+ h, ui, render, wallet, toast, copyBtn, pasteBtn, blankSend, goBack, goHome, openExternal,
fmtAmount, unitLabel, unitTag, parseAmount, getUnit: () => unit, toggleUnit, download,
brandHeader, activeAccount, setAccounts: (list) => { accounts = list; },
getAccounts: () => accounts,
claimTargets, enterWallet, activateAccount, commitAccount,
+ // cross-feature calls (e.g. gifts asking the ark feature for ark-gift
+ // support) — lazy so it resolves against the final FEATURES list, and a
+ // build without the target feature simply gets null back
+ hook: (name, ...args) => featureHook(name, ...args),
};
const FEATURES = buildFeatures(ctx);