Skip to content

Commit

Permalink
fix: fix issue with unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Dec 23, 2024
1 parent b3eb480 commit 2ed0a1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export class BrowserEnvContribution extends BaseEnvContribution implements IEnvC
.load()
.then(function (loadedFont) {
// 将字体添加到文档中
document.fonts.add(loadedFont);
(document.fonts as any).add(loadedFont);
return { loadState: 'success' } as { loadState: 'success' | 'fail' };
})
.catch(function (error) {
Expand Down

0 comments on commit 2ed0a1e

Please sign in to comment.