Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created September 29, 2012 11:03
Show Gist options
  • Save brianleroux/3803705 to your computer and use it in GitHub Desktop.
Save brianleroux/3803705 to your computer and use it in GitHub Desktop.
dont judge me
<script src=cordova-2.0.0.js></script>
<script src=powermanagement.js></script>
<script>
document.addEventListener("deviceready", function() {
startGeolocating();
cordova.require('cordova/plugin/powermanagement').acquire(
function() { console.log( 'hooray power mgmt' ); },
function() { console.log( 'oh no! power mgmt fuct' ); }
);
}, true);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment