We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f91a44 commit 13f7387Copy full SHA for 13f7387
src/features/CustomViews.ts
@@ -207,12 +207,18 @@ class HtmlContentView extends CustomView {
207
this.webviewPanel.dispose();
208
}
209
210
- let localResourceRoots: vscode.Uri[] = this.htmlContent.javaScriptPaths.map((p) => {
211
- return vscode.Uri.parse(path.dirname(p));
212
- });
213
- localResourceRoots = localResourceRoots.concat(this.htmlContent.styleSheetPaths.map((p) => {
214
215
- }));
+ let localResourceRoots: vscode.Uri[] = [];
+ if (this.htmlContent.javaScriptPaths) {
+ localResourceRoots = localResourceRoots.concat(this.htmlContent.javaScriptPaths.map((p) => {
+ return vscode.Uri.parse(path.dirname(p));
+ }));
+ }
216
+
217
+ if (this.htmlContent.styleSheetPaths) {
218
+ localResourceRoots = localResourceRoots.concat(this.htmlContent.styleSheetPaths.map((p) => {
219
220
221
222
223
this.webviewPanel = vscode.window.createWebviewPanel(
224
this.id,
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments