Skip to content

Commit a8cec5f

Browse files
Enable ligatures addon on electron
1 parent 9154831 commit a8cec5f

File tree

1 file changed

+1
-1
lines changed
  • addons/xterm-addon-ligatures/src

1 file changed

+1
-1
lines changed

addons/xterm-addon-ligatures/src/font.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default async function load(fontFamily: string, cacheSize: number): Promi
6565
}
6666
}
6767
// Latest proposal https://bugs.chromium.org/p/chromium/issues/detail?id=1312603
68-
else if (typeof process !== 'object' && 'queryLocalFonts' in window) {
68+
else if (typeof window !== 'undefined' && 'queryLocalFonts' in window) {
6969
const fonts: Record<string, IFontMetadata[]> = {};
7070
try {
7171
const fontsIterator = await (window as any).queryLocalFonts();

0 commit comments

Comments
 (0)