mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
added notebook output renderer tests
This commit is contained in:
10
extensions/notebook-renderers/src/htmlHelper.ts
Normal file
10
extensions/notebook-renderers/src/htmlHelper.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
export const ttPolicy = (typeof window !== 'undefined') ?
|
||||
window.trustedTypes?.createPolicy('notebookRenderer', {
|
||||
createHTML: value => value,
|
||||
createScript: value => value,
|
||||
}) : undefined;
|
||||
Reference in New Issue
Block a user