From 16de8728e3df604a2b6eafbec7f1a1f969742803 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 28 Aug 2020 12:39:59 -0500 Subject: [PATCH] chore(hydrate): add globals to hydrate scope --- .../hydrate-factory-closure.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.ts b/src/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.ts index 4a1780f21aa..d96277da2d1 100644 --- a/src/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.ts +++ b/src/compiler/output-targets/dist-hydrate-script/hydrate-factory-closure.ts @@ -37,12 +37,28 @@ export function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydr var DOMTokenList = $stencilWindow.DOMTokenList; var Element = $stencilWindow.Element; var Event = $stencilWindow.Event; + var Headers = $stencilWindow.Headers; + var HTMLAnchorElement = $stencilWindow.HTMLAnchorElement; + var HTMLBaseElement = $stencilWindow.HTMLBaseElement; + var HTMLButtonElement = $stencilWindow.HTMLButtonElement; + var HTMLCanvasElement = $stencilWindow.HTMLCanvasElement; var HTMLElement = $stencilWindow.HTMLElement; + var HTMLFormElement = $stencilWindow.HTMLFormElement; + var HTMLImageElement = $stencilWindow.HTMLImageElement; + var HTMLInputElement = $stencilWindow.HTMLInputElement; + var HTMLLinkElement = $stencilWindow.HTMLLinkElement; + var HTMLMetaElement = $stencilWindow.HTMLMetaElement; + var HTMLScriptElement = $stencilWindow.HTMLScriptElement; + var HTMLStyleElement = $stencilWindow.HTMLStyleElement; + var HTMLTemplateElement = $stencilWindow.HTMLTemplateElement; + var HTMLTitleElement = $stencilWindow.HTMLTitleElement; var IntersectionObserver = $stencilWindow.IntersectionObserver; var KeyboardEvent = $stencilWindow.KeyboardEvent; var MouseEvent = $stencilWindow.MouseEvent; var Node = $stencilWindow.Node; var NodeList = $stencilWindow.NodeList; + var Request = $stencilWindow.Request; + var Response = $stencilWindow.Response; var URL = $stencilWindow.URL; var console = $stencilWindow.console;