Refaktorieren Sie den App-Konstruktor, um container standardmäßig auf einen Wert basierend auf dem Klassennamen zu setzen, falls nicht angegeben.
This commit is contained in:
parent
1f4cf54406
commit
0c6fd2efe3
@ -10,8 +10,8 @@ const ActionType = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class App {
|
class App {
|
||||||
constructor(container, envelopeKey, envelopeReceiver, documentBytes, licenseKey) {
|
constructor(envelopeKey, envelopeReceiver, documentBytes, licenseKey, container) {
|
||||||
this.container = container
|
this.container = container ?? `#${this.constructor.name.toLowerCase()}`;
|
||||||
this.envelopeKey = envelopeKey
|
this.envelopeKey = envelopeKey
|
||||||
|
|
||||||
this.UI = new UI()
|
this.UI = new UI()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user