Skip to content

Commit 06eb06a

Browse files
committed
Add font files to binary extensions.
1 parent 4481f19 commit 06eb06a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WebpagePanel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public class WebpagePanel : UserControl
3838
"html,htm,mht,mhtml,pdf,csv,xlsx,svg,md,markdown,gltf,glb,c++,h++,bat,c,cmake,cpp,cs,css,go,h,hpp,java,js,json,jsx,lua,perl,pl,ps1,psm1,py,rb,sass,scss,sh,sql,tex,ts,tsx,txt,webp,yaml,yml";
3939
public string[] Extensions = { };
4040

41-
private static readonly string[] _binExtensions = "pdf,xlsx,xls,ods,gltf,glb,fbx,obj,webp,jpg,jpeg,png,apng,gif,bmp".Split(',');
41+
// These should match the ones in the web app openFile.ts:BINARY_EXTENSIONS
42+
private static readonly string[] _binExtensions = "pdf,xlsx,xls,ods,gltf,glb,fbx,obj,webp,jpg,jpeg,png,apng,gif,bmp,ttf,otf,woff,woff2".Split(',');
4243
private Uri _currentUri;
4344
private WebView2 _webView;
4445
private bool _webAppReady = false;

0 commit comments

Comments
 (0)