mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fixing some comments
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
const vscode = acquireVsCodeApi();
|
||||
|
||||
const counter = document.getElementById('lines-of-code-counter');
|
||||
|
||||
let currentCount = 0;
|
||||
|
||||
setInterval(() => {
|
||||
@ -20,9 +19,9 @@
|
||||
}
|
||||
}, 100);
|
||||
|
||||
// Handle messages sent from the extension to the webview inside the webview
|
||||
// Handle messages sent from the extension to the webview
|
||||
window.addEventListener('message', event => {
|
||||
const message = event.data; // The json data the extension sent
|
||||
const message = event.data; // The json data that the extension sent
|
||||
switch (message.command) {
|
||||
case 'refactor':
|
||||
currentCount = Math.ceil(currentCount * 0.5);
|
||||
|
||||
@ -145,7 +145,7 @@ class CatCodingPanel {
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<!--
|
||||
Use a content security policy to allow loading images from https or from our extension directory,
|
||||
Use a content security policy to only allow loading images from https or from our extension directory,
|
||||
and only allow scripts that have a specific nonce.
|
||||
-->
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; script-src 'nonce-${nonce}';">
|
||||
|
||||
Reference in New Issue
Block a user