Detect if power management not available and hide setting for it
This commit is contained in:
parent
3d2e187a11
commit
ad820cab3c
@ -801,7 +801,7 @@ var routes = [
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
if (platform_type == "cordova" && cordova.platformId != "browser") {
|
if (platform_type == "cordova" && cordova.platformId != "browser" && typeof window.powerManagement != "undefined") {
|
||||||
settings.push({
|
settings.push({
|
||||||
setting: "wakelock",
|
setting: "wakelock",
|
||||||
title: "Keep screen on",
|
title: "Keep screen on",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user