Skip to content

Commit cc4cad7

Browse files
committed
Hotfix: close #66
1 parent 01e0e56 commit cc4cad7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/static/js/iban.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,13 @@ function showPartsPop(op, response){
287287

288288
const a = document.createElement('a');
289289
a.href = '/' + IBAN + '/' + entry;
290-
a.target = '_blank';
291290
a.innerHTML = entry;
292291

292+
// Use '_blank' when not in PWA
293+
if (sessionStorage.getItem('pwa_installed') != 'true'){
294+
a.target = '_blank';
295+
}
296+
293297
li.appendChild(a);
294298
ul.appendChild(li);
295299
}
@@ -321,13 +325,11 @@ function tagAndCat(operation) {
321325
return;
322326
}
323327

324-
payload['streaming'] = false;
325328
api_url = 'tag-and-cat/';
326329
}
327330

328331
const dry_run = document.getElementById(operation + '-dry').checked;
329332
if (dry_run) {
330-
payload['streaming'] = false;
331333
payload['dry_run'] = dry_run;
332334
}
333335

0 commit comments

Comments
 (0)