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');