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