chayns-api 1.0.76 → 1.0.78
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.
|
@@ -590,6 +590,25 @@ class AppWrapper {
|
|
|
590
590
|
},
|
|
591
591
|
awaitResult: true
|
|
592
592
|
});
|
|
593
|
+
this.appCall(254, {
|
|
594
|
+
enabled: true
|
|
595
|
+
}, {
|
|
596
|
+
callback: ({
|
|
597
|
+
colorMode
|
|
598
|
+
}) => {
|
|
599
|
+
const site = {
|
|
600
|
+
...this.values.site,
|
|
601
|
+
colorMode
|
|
602
|
+
};
|
|
603
|
+
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
604
|
+
detail: {
|
|
605
|
+
type: 'site',
|
|
606
|
+
value: site
|
|
607
|
+
}
|
|
608
|
+
}));
|
|
609
|
+
},
|
|
610
|
+
awaitResult: true
|
|
611
|
+
});
|
|
593
612
|
return undefined;
|
|
594
613
|
}
|
|
595
614
|
getSSRData() {
|
|
@@ -588,6 +588,26 @@ export class AppWrapper {
|
|
|
588
588
|
},
|
|
589
589
|
awaitResult: true
|
|
590
590
|
});
|
|
591
|
+
this.appCall(254, {
|
|
592
|
+
enabled: true
|
|
593
|
+
}, {
|
|
594
|
+
callback: _ref2 => {
|
|
595
|
+
let {
|
|
596
|
+
colorMode
|
|
597
|
+
} = _ref2;
|
|
598
|
+
const site = {
|
|
599
|
+
...this.values.site,
|
|
600
|
+
colorMode
|
|
601
|
+
};
|
|
602
|
+
document.dispatchEvent(new CustomEvent('chayns_api_data', {
|
|
603
|
+
detail: {
|
|
604
|
+
type: 'site',
|
|
605
|
+
value: site
|
|
606
|
+
}
|
|
607
|
+
}));
|
|
608
|
+
},
|
|
609
|
+
awaitResult: true
|
|
610
|
+
});
|
|
591
611
|
return undefined;
|
|
592
612
|
}
|
|
593
613
|
getSSRData() {
|