chayns-api 1.0.75 → 1.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -577,7 +577,8 @@ class AppWrapper {
|
|
|
577
577
|
async init() {
|
|
578
578
|
this.values = this.mapOldApiToNew(await this.appCall(18));
|
|
579
579
|
this.appCall(66, {
|
|
580
|
-
enabled: true
|
|
580
|
+
enabled: true
|
|
581
|
+
}, {
|
|
581
582
|
callback: async () => {
|
|
582
583
|
this.values = this.mapOldApiToNew(await this.appCall(18));
|
|
583
584
|
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
@@ -586,7 +587,24 @@ class AppWrapper {
|
|
|
586
587
|
value: this.values.user
|
|
587
588
|
}
|
|
588
589
|
}));
|
|
589
|
-
}
|
|
590
|
+
},
|
|
591
|
+
awaitResult: true
|
|
592
|
+
});
|
|
593
|
+
this.appCall(254, {
|
|
594
|
+
enabled: true
|
|
595
|
+
}, {
|
|
596
|
+
callback: ({
|
|
597
|
+
colorMode
|
|
598
|
+
}) => {
|
|
599
|
+
this.values.site.colorMode = colorMode;
|
|
600
|
+
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
601
|
+
detail: {
|
|
602
|
+
type: 'site',
|
|
603
|
+
value: this.values.site
|
|
604
|
+
}
|
|
605
|
+
}));
|
|
606
|
+
},
|
|
607
|
+
awaitResult: true
|
|
590
608
|
});
|
|
591
609
|
return undefined;
|
|
592
610
|
}
|
|
@@ -575,7 +575,8 @@ export class AppWrapper {
|
|
|
575
575
|
async init() {
|
|
576
576
|
this.values = this.mapOldApiToNew(await this.appCall(18));
|
|
577
577
|
this.appCall(66, {
|
|
578
|
-
enabled: true
|
|
578
|
+
enabled: true
|
|
579
|
+
}, {
|
|
579
580
|
callback: async () => {
|
|
580
581
|
this.values = this.mapOldApiToNew(await this.appCall(18));
|
|
581
582
|
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
@@ -584,7 +585,25 @@ export class AppWrapper {
|
|
|
584
585
|
value: this.values.user
|
|
585
586
|
}
|
|
586
587
|
}));
|
|
587
|
-
}
|
|
588
|
+
},
|
|
589
|
+
awaitResult: true
|
|
590
|
+
});
|
|
591
|
+
this.appCall(254, {
|
|
592
|
+
enabled: true
|
|
593
|
+
}, {
|
|
594
|
+
callback: _ref2 => {
|
|
595
|
+
let {
|
|
596
|
+
colorMode
|
|
597
|
+
} = _ref2;
|
|
598
|
+
this.values.site.colorMode = colorMode;
|
|
599
|
+
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
600
|
+
detail: {
|
|
601
|
+
type: 'site',
|
|
602
|
+
value: this.values.site
|
|
603
|
+
}
|
|
604
|
+
}));
|
|
605
|
+
},
|
|
606
|
+
awaitResult: true
|
|
588
607
|
});
|
|
589
608
|
return undefined;
|
|
590
609
|
}
|