Wire up fake window.Signal.HTML because it's captured on load

This commit is contained in:
Scott Nonnenberg 2018-04-12 00:37:32 -07:00
parent 0f8dd7e2db
commit 2243e348f1
No known key found for this signature in database
GPG key ID: 5F82280C35134661
2 changed files with 3 additions and 3 deletions

View file

@ -24,6 +24,9 @@ window.libphonenumber = {
};
window.Signal = {};
window.Signal.HTML = {
render: thing => thing,
};
window.Signal.Backup = {};
window.Signal.Crypto = {};
window.Signal.Logs = {};

View file

@ -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,
};