Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusZdroba committed Nov 21, 2024
1 parent 85601d9 commit 42c7edb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ declare const acquireVsCodeApi: any;

const ignoreContainerElements = document.getElementsByClassName('ignore-action-container');
if (ignoreContainerElements) {
toggleElement((ignoreContainerElements[0] as HTMLElement), "show");
toggleElement(ignoreContainerElements[0] as HTMLElement, 'show');
(ignoreContainerElements[0] as HTMLElement).style.display = suggestion?.showInlineIgnoresButton ? 'block' : 'none';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,8 @@ export class IacSuggestionWebviewProvider
html = html.replace(/nonce-ideNonce/g, `nonce-${nonce}`);
// data-ide-style is a placeholder defined in the Language Server
// to be replaced with the custom IDE styles.
html = html.replace(
'${ideStyle}',
`<style nonce="${nonce}">${ideStyle}</style>`,
);
html = html.replace("${ideScript}", "");
html = html.replace('${ideStyle}', `<style nonce="${nonce}">${ideStyle}</style>`);
html = html.replace('${ideScript}', '');
return html;
}

Expand Down

0 comments on commit 42c7edb

Please sign in to comment.