commit fbf2d436e1be0714349661efb034925e32d89e88 parent 74b3cdad23542b8075ee60e8f8faa46e980e7f0b Author: ms <ms@taler.net> Date: Wed, 2 Feb 2022 10:58:58 +0100 note Diffstat:
| M | packages/bank/src/pages/home/index.tsx | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/packages/bank/src/pages/home/index.tsx b/packages/bank/src/pages/home/index.tsx @@ -155,6 +155,10 @@ function prepareHeaders(username: string, password: string) { return headers; } +// Window can be mocked this way: +// https://gist.github.com/theKashey/07090691c0a4680ed773375d8dbeebc1#file-webpack-conf-js +// That allows the app to be pointed to a arbitrary +// euFin backend when launched via "pnpm dev". const getRootPath = () => { const maybeRootPath = typeof window !== undefined ? window.location.origin + window.location.pathname