Add an assertion when updating conversations; update cleanData
This commit is contained in:
parent
73a304faba
commit
bc37b5c907
23 changed files with 749 additions and 79 deletions
|
@ -7,10 +7,16 @@ const { ipcRenderer } = require('electron');
|
|||
const url = require('url');
|
||||
const copyText = require('copy-text-to-clipboard');
|
||||
const i18n = require('./js/modules/i18n');
|
||||
const {
|
||||
getEnvironment,
|
||||
setEnvironment,
|
||||
parseEnvironment,
|
||||
} = require('./ts/environment');
|
||||
|
||||
const config = url.parse(window.location.toString(), true).query;
|
||||
const { locale } = config;
|
||||
const localeMessages = ipcRenderer.sendSync('locale-data');
|
||||
setEnvironment(parseEnvironment(config.environment));
|
||||
|
||||
window.getVersion = () => config.version;
|
||||
window.theme = config.theme;
|
||||
|
@ -21,7 +27,7 @@ window.copyText = copyText;
|
|||
window.nodeSetImmediate = setImmediate;
|
||||
|
||||
window.getNodeVersion = () => config.node_version;
|
||||
window.getEnvironment = () => config.environment;
|
||||
window.getEnvironment = getEnvironment;
|
||||
|
||||
require('./ts/logging/set_up_renderer_logging');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue