Use own createElement() instead of doc.createElement

This commit is contained in:
djmaze 2021-03-25 09:38:45 +01:00
parent 7eaaa0a793
commit 23e15fd161
6 changed files with 12 additions and 11 deletions

View file

@ -2,6 +2,7 @@ import ko from 'ko';
import {
doc,
createElement,
elementById,
Settings
} from 'Common/Globals';
@ -39,7 +40,7 @@ export class AbstractApp {
open(link, '_self');
focus();
} else {
const oLink = doc.createElement('a');
const oLink = createElement('a');
oLink.href = link;
doc.body.appendChild(oLink).click();
oLink.remove();