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:
Developer 02 2024-05-22 15:50:32 +02:00
parent 1f4cf54406
commit 0c6fd2efe3

View File

@ -10,8 +10,8 @@ const ActionType = {
}
class App {
constructor(container, envelopeKey, envelopeReceiver, documentBytes, licenseKey) {
this.container = container
constructor(envelopeKey, envelopeReceiver, documentBytes, licenseKey, container) {
this.container = container ?? `#${this.constructor.name.toLowerCase()}`;
this.envelopeKey = envelopeKey
this.UI = new UI()