From 2243e348f1b40bb92bdbf6bf577fa28e2905071c Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 12 Apr 2018 00:37:32 -0700 Subject: [PATCH] Wire up fake window.Signal.HTML because it's captured on load --- test/styleguide/legacy_bridge.js | 3 +++ ts/styleguide/StyleGuideUtil.ts | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/styleguide/legacy_bridge.js b/test/styleguide/legacy_bridge.js index 26d7c2f5d..99d11bb69 100644 --- a/test/styleguide/legacy_bridge.js +++ b/test/styleguide/legacy_bridge.js @@ -24,6 +24,9 @@ window.libphonenumber = { }; window.Signal = {}; +window.Signal.HTML = { + render: thing => thing, +}; window.Signal.Backup = {}; window.Signal.Crypto = {}; window.Signal.Logs = {}; diff --git a/ts/styleguide/StyleGuideUtil.ts b/ts/styleguide/StyleGuideUtil.ts index dbe945ca5..be8075e20 100644 --- a/ts/styleguide/StyleGuideUtil.ts +++ b/ts/styleguide/StyleGuideUtil.ts @@ -68,8 +68,6 @@ const urlOptions = qs.parse(query); const theme = urlOptions.theme || 'android'; const locale = urlOptions.locale || 'en'; -import HTML from '../ts/html'; - // @ts-ignore import localeMessages from '../../_locales/en/messages.json'; @@ -100,7 +98,6 @@ parent.moment.locale(locale); parent.React = React; parent.ReactDOM = ReactDOM; -parent.Signal.HTML = HTML; parent.Signal.Components = { Quote, };