chore: disable setting font for now

need to revisit which font should be added to match default
Podman Desktop style font

fixes https://github.com/containers/podman-desktop/issues/5629
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
Florent Benoit 2024-01-22 15:33:59 +01:00 committed by Florent BENOIT
parent caed92f22f
commit 8df529b5bd
2 changed files with 1 additions and 4 deletions

View file

@ -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 () => {

View file

@ -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();