From b7a68514736a5b9f8fc19d453e805501ff17f041 Mon Sep 17 00:00:00 2001 From: Andrew Mitchell Date: Thu, 17 Aug 2017 15:19:20 -0500 Subject: [PATCH] fix(templates): uncaught Promise error when shimming HTMLTemplateElement --- origami/src/templates/polymer-template.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/origami/src/templates/polymer-template.directive.ts b/origami/src/templates/polymer-template.directive.ts index da60cdf..84a5528 100644 --- a/origami/src/templates/polymer-template.directive.ts +++ b/origami/src/templates/polymer-template.directive.ts @@ -37,7 +37,7 @@ function shimHTMLTemplateAppend() { if (typeof HTMLTemplateElement !== 'undefined') { shimHTMLTemplateAppend(); } else { - webcomponentsReady(true).then(shimHTMLTemplateAppend); + webcomponentsReady(true).then(shimHTMLTemplateAppend).catch(() => { /* noop */ }); } /* istanbul ignore next */