Browse Source

replace append function with appendChild

append is still experimental and does not work in edge/safari
fixes #2
main
Gus Esquivel 8 years ago
parent
commit
9f119c5305
  1. 2
      src/js/slate.js
  2. 2
      static/js/slate.js

2
src/js/slate.js

@ -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;

2
static/js/slate.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save