refactor(network): Netzwerkklasse entfernen und Methoden statisch machen.

- Unnötige Funktionen entfernen.
This commit is contained in:
2025-09-04 19:09:21 +02:00
parent 86eb687296
commit 369d101d7b
2 changed files with 25 additions and 147 deletions

View File

@@ -13,9 +13,6 @@ class App {
constructor(envelopeKey, envelopeReceiver, documentBytes, licenseKey, locale, container) {
this.container = container ?? `#${this.constructor.name.toLowerCase()}`;
this.envelopeKey = envelopeKey
this.Network = new Network()
this.Instance = null
this.currentDocument = null
this.currentReceiver = null
@@ -275,7 +272,7 @@ class App {
// Export annotation data and save to database
try {
const res = await this.Network.postEnvelope(this.envelopeKey, await iJSON);
const res = await postEnvelope(this.envelopeKey, await iJSON);
if (!res.ok) {
if (res.status === 403) {