don't also open history links in popup
This commit is contained in:
parent
d18d220557
commit
49949de808
@ -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,
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user