mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Use own createElement() instead of doc.createElement
This commit is contained in:
parent
7eaaa0a793
commit
23e15fd161
6 changed files with 12 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue