don't also open history links in popup

This commit is contained in:
Florian Dold 2017-06-05 00:52:22 +02:00
parent d18d220557
commit 49949de808
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 3 additions and 2 deletions

View File

@ -526,7 +526,8 @@ function openExtensionPage(page: string) {
function openTab(page: string) { function openTab(page: string) {
return () => { return (evt) => {
evt.preventDefault();
chrome.tabs.create({ chrome.tabs.create({
url: page, url: page,
}); });

View File

@ -566,7 +566,7 @@ function openTalerDb(): Promise<IDBDatabase> {
}; };
req.onupgradeneeded = (e) => { req.onupgradeneeded = (e) => {
const db = req.result; 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) { switch (e.oldVersion) {
case 0: // DB does not exist yet case 0: // DB does not exist yet