diff --git a/webview-sample/src/extension.ts b/webview-sample/src/extension.ts index 84b14380..d4dfc1a6 100644 --- a/webview-sample/src/extension.ts +++ b/webview-sample/src/extension.ts @@ -1,5 +1,5 @@ import * as vscode from 'vscode'; - + const cats = { 'Coding Cat': 'https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif', 'Compiling Cat': 'https://media.giphy.com/media/mlvseq9yvZhba/giphy.gif', @@ -167,30 +167,30 @@ class CatCodingPanel { // And the uri we use to load this script in the webview const scriptUri = webview.asWebviewUri(scriptPathOnDisk); - // Use a nonce to whitelist which scripts can be run + // Use a nonce to only allow specific scripts to be run const nonce = getNonce(); return ` - - - + + + - - + + - - Cat Coding - - - -

0

+ + Cat Coding + + + +

0

- - - `; + + + `; } }