refactor(network): Netzwerkklasse entfernen und Methoden statisch machen.
- Unnötige Funktionen entfernen.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user