fix autogenerated element (#397)

* use static string in checkId to simplify behaviour and ensure ids always start with alpha char

* re-enable terser on minify

* fix example local path
This commit is contained in:
Fabio Pliger
2022-05-16 16:08:28 -05:00
committed by GitHub
parent eba42ad9b4
commit 0476627f34
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ export class BaseEvalElement extends HTMLElement {
}
checkId() {
if (!this.id) this.id = this.constructor.name + '-' + guidGenerator();
if (!this.id) this.id = 'py-' + guidGenerator();
}
getSourceFromElement(): string {