Enables sandbox on about window
This commit is contained in:
parent
58691b2f5e
commit
4591b56f7f
27 changed files with 262 additions and 93 deletions
12
ts/context/config.ts
Normal file
12
ts/context/config.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { RendererConfigType } from '../types/RendererConfig';
|
||||
import { strictAssert } from '../util/assert';
|
||||
|
||||
const params = new URLSearchParams(document.location.search);
|
||||
const configParam = params.get('config');
|
||||
strictAssert(typeof configParam === 'string', 'config is not a string');
|
||||
const config: RendererConfigType = JSON.parse(configParam);
|
||||
|
||||
export { config };
|
Loading…
Add table
Add a link
Reference in a new issue