Context isolation for About, ScreenShare, Preferences
This commit is contained in:
parent
59ca63cd2e
commit
43685d15c6
20 changed files with 234 additions and 321 deletions
27
ts/window.d.ts
vendored
27
ts/window.d.ts
vendored
|
@ -85,10 +85,6 @@ import { ConversationModel } from './models/conversations';
|
|||
import { combineNames } from './util';
|
||||
import { BatcherType } from './util/batcher';
|
||||
import { AttachmentList } from './components/conversation/AttachmentList';
|
||||
import {
|
||||
CallingScreenSharingController,
|
||||
PropsType as CallingScreenSharingControllerProps,
|
||||
} from './components/CallingScreenSharingController';
|
||||
import { CaptionEditor } from './components/CaptionEditor';
|
||||
import { ChatColorPicker } from './components/ChatColorPicker';
|
||||
import { ConfirmationDialog } from './components/ConfirmationDialog';
|
||||
|
@ -166,13 +162,6 @@ declare global {
|
|||
|
||||
WhatIsThis: WhatIsThis;
|
||||
|
||||
registerScreenShareControllerRenderer: (
|
||||
f: (
|
||||
component: typeof CallingScreenSharingController,
|
||||
props: CallingScreenSharingControllerProps
|
||||
) => void
|
||||
) => void;
|
||||
|
||||
addSetupMenuItems: () => void;
|
||||
attachmentDownloadQueue: Array<MessageModel> | undefined;
|
||||
startupProcessingQueue: StartupQueue | undefined;
|
||||
|
@ -497,16 +486,14 @@ declare global {
|
|||
|
||||
RETRY_DELAY: boolean;
|
||||
|
||||
// These elements are only available in the Settings window
|
||||
SignalModule: {
|
||||
registerReactRenderer: (
|
||||
f: <P extends {}>(
|
||||
component: FunctionComponent<P> | ComponentClass<P>,
|
||||
props?: (Attributes & P) | null
|
||||
) => void
|
||||
) => void;
|
||||
SignalWindow: {
|
||||
config: string;
|
||||
getAppInstance: () => string | undefined;
|
||||
getEnvironment: () => string;
|
||||
getVersion: () => string;
|
||||
i18n: LocalizerType;
|
||||
renderWindow: () => void;
|
||||
};
|
||||
renderPreferences: () => unknown;
|
||||
}
|
||||
|
||||
// We want to extend `Error`, so we need an interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue