fix the acquisition callback
This commit is contained in:
@ -177,13 +177,11 @@ function startBcnumAcquisition(ev) {
|
||||
})
|
||||
}
|
||||
function startAllAcquisition(ev) {
|
||||
browser.storage.sync.set({"acquireAll":true}).then(() => {
|
||||
browser.storage.sync.set({ "acquireAll": true }).then(() => {
|
||||
browser.storage.sync.onChanged.addListener(changes => {
|
||||
console.debug(changes);
|
||||
for(const [key, changeSet] of Object.entries(changes)){
|
||||
if (key === "acquireAll"){
|
||||
document.location.reload();
|
||||
}
|
||||
if ("acquireAll" in changes) {
|
||||
document.location.reload();
|
||||
}
|
||||
})
|
||||
bahncardWindow = window.open("https://www.bahn.de/buchung/kundenkonto/bahncard", "_blank", "popup")
|
||||
|
Reference in New Issue
Block a user