Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Sep 21, 2023
1 parent b9350fe commit c0ece7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev/ts/pages/bpmn-rendering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { documentReady, log, logError, startBpmnVisualization } from '../develop

function statusFetchKO(errorMessage: string): void {
logError(errorMessage);
const statusElt = document.querySelector('#status-zone') as HTMLDivElement;
statusElt.innerText = errorMessage;
const statusElt = document.querySelector<HTMLDivElement>('#status-zone');
statusElt.textContent = errorMessage;
statusElt.className = 'status-ko';
log('Status zone set with error:', errorMessage);
}
Expand Down
4 changes: 2 additions & 2 deletions dev/ts/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ function configureDisplayedFooterContent(): void {
const version = getVersion();
const versionAsString = `bpmn-visualization@${version.lib}`;
const dependenciesAsString = [...version.dependencies].map(([name, version]) => `${name}@${version}`).join('/');
const versionElt = document.querySelector('#footer-content') as HTMLDivElement;
versionElt.innerText = `${versionAsString} with ${dependenciesAsString}`;
const versionElt = document.querySelector('#footer-content');
versionElt.textContent = `${versionAsString} with ${dependenciesAsString}`;
}

// The following function `preventZoomingPage` serves to block the page content zoom.
Expand Down

0 comments on commit c0ece7a

Please sign in to comment.