Unrecoverable Syntax Error

Hi there,

I am getting the below error on my js code:

Warning: Uglification failed.
Unexpected token punc «;», expected punc «,».

Here is the code below:

window.powerManagement.dim(function() {
console.log('Wakelock acquired');
}, function() {
console.log('Failed to acquire wakelock');
});
window.powerManagement.setReleaseOnPause(false, function() {
console.log('setReleaseOnPause successfully');
}, function() {
console.log('Failed to set');
});

Please help me correct the syntax?

Thanks
1 person has
this problem
+1
Reply