Wire up fake window.Signal.HTML because it's captured on load
This commit is contained in:
parent
0f8dd7e2db
commit
2243e348f1
2 changed files with 3 additions and 3 deletions
|
@ -24,6 +24,9 @@ window.libphonenumber = {
|
|||
};
|
||||
|
||||
window.Signal = {};
|
||||
window.Signal.HTML = {
|
||||
render: thing => thing,
|
||||
};
|
||||
window.Signal.Backup = {};
|
||||
window.Signal.Crypto = {};
|
||||
window.Signal.Logs = {};
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue