This commit is contained in:
Lilian Besson
2016-10-11 10:51:47 +02:00
parent e099d560e4
commit 04124c07e8
3 changed files with 3 additions and 3 deletions

View File

@@ -446,7 +446,7 @@ var PR=win['PR']={'createSimpleLexer':createSimpleLexer,'registerLangHandler':re
var newNode = document.createElement('div');
newNode.className = 'container';
newNode.id = 'content';
document.body.replaceChild(newNode, markdownEl);
markdownEl.parentNode.replaceChild(newNode, markdownEl) || document.body.replaceChild(newNode, markdownEl);
// Insert navbar if there's none // FIXED be sure this is good: OK
var newNode = document.createElement('div');

2
strapdown.min.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -2044,7 +2044,7 @@ var prettyPrint;
newNode.className = "container";
/** @type {string} */
newNode.id = "content";
document.body.replaceChild(newNode, markdownEl);
markdownEl.parentNode.replaceChild(newNode, markdownEl) || document.body.replaceChild(newNode, markdownEl);
/** @type {Element} */
newNode = document.createElement("div");
/** @type {string} */