diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-06-05 00:52:22 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-06-05 00:52:22 +0200 |
commit | 49949de808154d360fd2e9383da2377b146b90e4 (patch) | |
tree | a4d7f314cd83f2d52814be4d71c9ec89372ec56a | |
parent | d18d220557feb43ddb550339cb9fc38b6c4f8aac (diff) |
don't also open history links in popup
-rw-r--r-- | src/webex/pages/popup.tsx | 3 | ||||
-rw-r--r-- | src/webex/wxBackend.ts | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index ee9c8023f..d7429f837 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -526,7 +526,8 @@ function openExtensionPage(page: string) { function openTab(page: string) { - return () => { + return (evt) => { + evt.preventDefault(); chrome.tabs.create({ url: page, }); diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index b4e24e09c..30f127347 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -566,7 +566,7 @@ function openTalerDb(): Promise<IDBDatabase> { }; req.onupgradeneeded = (e) => { const db = req.result; - console.log("DB: upgrade needed: oldVersion = " + e.oldVersion); + console.log(`DB: upgrade needed: oldVersion=${e.oldVersion}, newVersion=${e.newVersion}`); switch (e.oldVersion) { case 0: // DB does not exist yet |