refactor: move from union type to object enum
This commit is contained in:
@@ -3,7 +3,10 @@ import * as vscode from "vscode";
|
||||
const NONCE_LENGTH = 32;
|
||||
|
||||
/** Kanban board document (columns + HTML5 drag-and-drop). */
|
||||
export function getTaskKanbanHtml(webview: vscode.Webview, nonce: string): string {
|
||||
export function getTaskKanbanHtml(
|
||||
webview: vscode.Webview,
|
||||
nonce: string,
|
||||
): string {
|
||||
const csp = [
|
||||
"default-src 'none'",
|
||||
`style-src ${webview.cspSource} 'unsafe-inline'`,
|
||||
|
||||
Reference in New Issue
Block a user