Update browserViewMetaData.ts

This commit is contained in:
tiddlygit-test 2021-07-08 00:16:58 +08:00
parent fd596ed671
commit 79cc275865

View file

@ -8,7 +8,9 @@ export let extraMeta: WindowMeta[WindowNames] = {};
try { try {
extraMeta = JSON.parse(extraMetaJSONString) as WindowMeta[WindowNames]; extraMeta = JSON.parse(extraMetaJSONString) as WindowMeta[WindowNames];
} catch (error) { } catch (error) {
console.error(`Failed to parse extraMeta. ${(error as Error).message} extraMeta is ${extraMetaJSONString} and process.argv is`, process.argv); console.error(
`Failed to parse extraMeta. ${(error as Error).message} extraMeta is ${extraMetaJSONString} and process.argv is ${JSON.stringify(process.argv)}`,
);
} }
export const browserViewMetaData = { windowName, ...extraMeta }; export const browserViewMetaData = { windowName, ...extraMeta };