Skip to content

Commit

Permalink
chore: disable setting font for now
Browse files Browse the repository at this point in the history
need to revisit which font should be added to match default
Podman Desktop style font

fixes podman-desktop#5629
Signed-off-by: Florent Benoit <[email protected]>
  • Loading branch information
benoitf committed Jan 22, 2024
1 parent caed92f commit 8df529b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/preload-webview/src/webview-preload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ test('check changeContent', async () => {

// check the document.write method has been called
expect(spyDocumentWrite).toHaveBeenCalledWith(`<!DOCTYPE html>
<html style="font-family: Montserrat;"><head></head><body>hello world</body></html>`);
<html><head></head><body>hello world</body></html>`);
});

test('check buildApi', async () => {
Expand Down
3 changes: 0 additions & 3 deletions packages/preload-webview/src/webview-preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ export class WebviewPreload {
// use a timeout to perform the update
setTimeout(() => {
const webviewContentHtml = new DOMParser().parseFromString(webviewHtmlContent, 'text/html');

webviewContentHtml.documentElement.style.setProperty('font-family', 'Montserrat');

const htmlContent = '<!DOCTYPE html>\n' + webviewContentHtml.documentElement.outerHTML;

document.open();
Expand Down

0 comments on commit 8df529b

Please sign in to comment.