gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: default backend is location w


From: gnunet
Subject: [taler-wallet-core] branch master updated: default backend is location without webui
Date: Mon, 27 Nov 2023 18:30:18 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new fbcaff9f7 default backend is location without webui
fbcaff9f7 is described below

commit fbcaff9f7663ce6e4d7c586003138a88b36ecdeb
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Nov 27 14:29:51 2023 -0300

    default backend is location without webui
---
 packages/demobank-ui/src/settings.ts | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/packages/demobank-ui/src/settings.ts 
b/packages/demobank-ui/src/settings.ts
index 67f926e7f..b7d285519 100644
--- a/packages/demobank-ui/src/settings.ts
+++ b/packages/demobank-ui/src/settings.ts
@@ -46,7 +46,7 @@ export interface BankUiSettings {
  * Global settings for the bank UI.
  */
 const defaultSettings: BankUiSettings = {
-  backendBaseURL: undefined,
+  backendBaseURL: buildDefaultBackendBaseURL(),
   iconLinkURL: undefined,
   bankName: "Taler Bank",
   simplePasswordForRandomAccounts: false,
@@ -79,3 +79,11 @@ export function fetchSettings(listener: (s: BankUiSettings) 
=> void): void {
 }
 
 
+
+function buildDefaultBackendBaseURL(): string | undefined {
+  if (typeof window !== "undefined") {
+    const currentLocation = new URL(window.location.pathname, 
window.location.origin).href
+    return currentLocation.replace("/webui", "")
+  }
+  return undefined
+}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]