detect the case in which multiple <py-config> are listed

Ideally I would like it to be a fatal error, but it's too hard to do it with the current state of the code, will refactor it later (#826)
This commit is contained in:
Antonio Cuni
2022-10-04 19:59:59 +02:00
committed by GitHub
parent e8e2e65584
commit 1e05ff7c95
3 changed files with 40 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ function guidGenerator(): string {
*/
function showError(msg: string): void {
const warning = document.createElement('div');
// XXX: the style should go to css instead of here probably
warning.className = "py-error";
warning.style.backgroundColor = 'LightCoral';
warning.style.alignContent = 'center';
warning.style.margin = '4px';