replace append function with appendChild

append is still experimental and does not work in edge/safari
fixes #2
This commit is contained in:
Gus Esquivel 2017-05-29 14:05:48 -05:00
parent b869797ba4
commit 9f119c5305
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ var renderPlainTile = function(tile) {
domainDiv.appendChild(beforeDiv); domainDiv.appendChild(beforeDiv);
domainDiv.append(urlParts.domain); domainDiv.appendChild(document.createTextNode(urlParts.domain));
domainDiv.appendChild(afterDiv); domainDiv.appendChild(afterDiv);
var top = (boxHeight + margin)/2 - domainDiv.clientHeight/2; var top = (boxHeight + margin)/2 - domainDiv.clientHeight/2;

File diff suppressed because one or more lines are too long