MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getSystemConfiguration

Function getSystemConfiguration

src/lib/systemConfiguration.js:50–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 * @returns {Promise<SystemConfiguration>}
49 */
50export function getSystemConfiguration() {
51 return new Promise((resolve, reject) => {
52 cordova.exec(resolve, reject, "System", "get-configuration", []);
53 });
54}
55
56export function isDeviceDarkTheme() {
57 return window.matchMedia("(prefers-color-scheme: dark)").matches;

Callers 2

setupEditorFunction · 0.90
keyboard.jsFile · 0.90

Calls 1

execMethod · 0.65

Tested by

no test coverage detected