File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
src/vs/workbench/contrib/webview/browser/pre Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 90
90
}
91
91
}
92
92
93
- window . createWebviewManager ( {
93
+ ( /** @type { any } */ ( window ) ) . createWebviewManager ( {
94
94
postMessage : hostMessaging . postMessage . bind ( hostMessaging ) ,
95
95
onMessage : hostMessaging . onMessage . bind ( hostMessaging ) ,
96
96
ready : workerReady ,
Original file line number Diff line number Diff line change 11
11
* focusIframeOnCreate?: boolean,
12
12
* ready?: Promise<void>,
13
13
* onIframeLoaded?: (iframe: HTMLIFrameElement) => void,
14
- * fakeLoad: boolean,
14
+ * fakeLoad? : boolean,
15
15
* rewriteCSP: (existingCSP: string, endpoint?: string) => string,
16
16
* }} WebviewHost
17
17
*/
605
605
if ( typeof module !== 'undefined' ) {
606
606
module . exports = createWebviewManager ;
607
607
} else {
608
- window . createWebviewManager = createWebviewManager ;
608
+ ( /** @type { any } */ ( window ) ) . createWebviewManager = createWebviewManager ;
609
609
}
610
610
} ( ) ) ;
Original file line number Diff line number Diff line change 2
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
+ /// <reference lib="webworker" />
6
+
5
7
const VERSION = 1 ;
6
8
7
9
const rootPath = self . location . pathname . replace ( / \/ s e r v i c e - w o r k e r .j s $ / , '' ) ;
@@ -273,4 +275,4 @@ async function getOuterIframeClient(webviewId) {
273
275
const clientUrl = new URL ( client . url ) ;
274
276
return ( clientUrl . pathname === `${ rootPath } /` || clientUrl . pathname === `${ rootPath } /index.html` ) && clientUrl . search . match ( new RegExp ( '\\bid=' + webviewId ) ) ;
275
277
} ) ;
276
- }
278
+ }
You can’t perform that action at this time.
0 commit comments