From 6d76411b12c81a6ebcc925f3cffaf47c3b834c33 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 7 Apr 2019 19:46:52 +0200 Subject: [PATCH] package: update browser shim --- scripts/client-shim.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/client-shim.js b/scripts/client-shim.js index 16cbea0e..2883370b 100644 --- a/scripts/client-shim.js +++ b/scripts/client-shim.js @@ -10,7 +10,14 @@ document = { appendChild: ()=>{}, lastChild: {}, toString: ()=>' ', - removeChild: ()=>{} + removeChild: ()=>{}, + contentWindow: { + document: { + open: ()=>{}, + close: ()=>{}, + write: ()=>{}, + } + } }), createTextNode: x=>({ nodeValue: '', @@ -37,7 +44,11 @@ document = { appendChild: ()=>{}, addEventListener: ()=>{} }, - location: {} + location: {}, + documentElement: { + appendChild: ()=>{}, + removeChild: ()=>{} + } } window = {