Add allowNonHttpProtocols to typings

This commit is contained in:
RyotaK
2022-12-17 01:31:11 +09:00
committed by GitHub
parent f79644bd4c
commit 8636d0f820
+7
View File
@@ -1179,6 +1179,13 @@ declare module 'xterm' {
* @param range The buffer range of the link.
*/
leave?(event: MouseEvent, text: string, range: IBufferRange): void;
/**
* Whether to allow the use of non HTTP URLs in OscLinkProvider. When false, any usage of non
* HTTP URLs will be ignored. Enabling this option without proper protection in activate function
* may allow XSS.
*/
allowNonHttpProtocols?: boolean;
}
/**