From b58434eb7d2ce2a79516419ae060d4e480c86f90 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 20 Jul 2017 14:34:46 +0200 Subject: [PATCH] Fixed page reloads --- scripts/Diff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Diff.ts b/scripts/Diff.ts index 50afac15..b0d01c2f 100644 --- a/scripts/Diff.ts +++ b/scripts/Diff.ts @@ -13,7 +13,7 @@ export class Diff { } Diff.container.innerHTML = html - Diff.childNodes(aRoot, Diff.container) + Diff.childNodes(aRoot.getElementsByTagName("body")[0], Diff.container.getElementsByTagName("body")[0]) } // root will diff the document root element with the given HTML string and apply DOM mutations.