mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user