gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated (574e6ce3 -> d184633a)


From: gnunet
Subject: [taler-wallet-core] branch master updated (574e6ce3 -> d184633a)
Date: Sat, 02 Nov 2019 00:48:17 +0100

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

dold pushed a change to branch master
in repository wallet-core.

    from 574e6ce3 don't do requestUpdateStatus on FF
     new d6a3a54d installation popup in FF
     new d184633a fix test case

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 manifest.json           |  4 ++--
 src/types-test.ts       |  1 +
 src/webex/background.ts |  2 +-
 src/webex/pages/tip.tsx |  2 +-
 src/webex/wxBackend.ts  | 19 +++++++++++++------
 5 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/manifest.json b/manifest.json
index 61e063ea..5abbccae 100644
--- a/manifest.json
+++ b/manifest.json
@@ -4,8 +4,8 @@
   "name": "GNU Taler Wallet (git)",
   "description": "Privacy preserving and transparent payments",
   "author": "GNU Taler Developers",
-  "version": "0.6.69",
-  "version_name": "0.6.0pre2",
+  "version": "0.6.70",
+  "version_name": "0.6.0pre3",
 
   "minimum_chrome_version": "51",
   "minimum_opera_version": "36",
diff --git a/src/types-test.ts b/src/types-test.ts
index 3ba059de..56a82644 100644
--- a/src/types-test.ts
+++ b/src/types-test.ts
@@ -115,6 +115,7 @@ test("contract terms validation", (t) => {
     merchant_pub: "12345",
     order_id: "test_order",
     pay_deadline: "Date(12346)",
+    wire_transfer_deadline: "Date(12346)",
     merchant_base_url: "https://example.com/pay";,
     products: [],
     refund_deadline: "Date(12345)",
diff --git a/src/webex/background.ts b/src/webex/background.ts
index 3c63f323..dbc540df 100644
--- a/src/webex/background.ts
+++ b/src/webex/background.ts
@@ -23,7 +23,7 @@
 /**
  * Imports.
  */
-import {wxMain} from "./wxBackend";
+import { wxMain } from "./wxBackend";
 
 window.addEventListener("load", () => {
   wxMain();
diff --git a/src/webex/pages/tip.tsx b/src/webex/pages/tip.tsx
index 0a066053..148b8203 100644
--- a/src/webex/pages/tip.tsx
+++ b/src/webex/pages/tip.tsx
@@ -88,7 +88,7 @@ function TipDisplay(props: { talerTipUri: string }) {
       </p>
       <form className="pure-form">
         <ProgressButton loading={loading} onClick={() => accept()}>
-          AcceptTip
+          Accept Tip
         </ProgressButton>
         {" "}
         <button className="pure-button" type="button" onClick={() => 
discard()}>
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts
index 564ee24f..16cd2a78 100644
--- a/src/webex/wxBackend.ts
+++ b/src/webex/wxBackend.ts
@@ -547,19 +547,26 @@ function injectScript(
   });
 }
 
-/**
- * Main function to run for the WebExtension backend.
- *
- * Sets up all event handlers and other machinery.
- */
-export async function wxMain() {
+try {
+  // This needs to be outside of main, as Firefox won't fire the event if
+  // the listener isn't created synchronously on loading the backend.
   chrome.runtime.onInstalled.addListener(details => {
+    console.log("onInstalled with reason", details.reason);
     if (details.reason === "install") {
       const url = chrome.extension.getURL("/src/webex/pages/welcome.html");
       chrome.tabs.create({ active: true, url: url });
     }
   });
+} catch (e) {
+  console.error(e);
+}
 
+/**
+ * Main function to run for the WebExtension backend.
+ *
+ * Sets up all event handlers and other machinery.
+ */
+export async function wxMain() {
   // Explicitly unload the extension page as soon as an update is available,
   // so the update gets installed as soon as possible.
   chrome.runtime.onUpdateAvailable.addListener(details => {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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