mirror of
https://github.com/microsoft/vscode.git
synced 2026-10-06 15:30:20 +01:00
Avoid extra casts
This commit is contained in:
1 parent
aefafa019d
commit
0e8edff853
1 file changed
+1
-2
@@ -839,8 +839,7 @@ function webviewPreloads() {
|
||||
|
||||
cellContainer.appendChild(previewContainerNode);
|
||||
|
||||
previewContainerNode.attachShadow({ mode: 'open' });
|
||||
const previewRoot = previewContainerNode.shadowRoot! as any as HTMLElement;
|
||||
const previewRoot = previewContainerNode.attachShadow({ mode: 'open' });
|
||||
|
||||
// Add default webview style
|
||||
const defaultStyles = document.getElementById('_defaultStyles') as HTMLStyleElement;
|
||||
|
||||
Reference in new issue
Block a user