Fixing some comments

This commit is contained in:
Matt Bierner
2018-04-26 14:00:51 -07:00
parent c77406222c
commit 96abcf9805
2 changed files with 3 additions and 4 deletions

View File

@ -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);

View File

@ -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}';">