2021-04-07 09:13:07 +01:00
|
|
|
function wlCommonInit(){
|
|
|
|
|
// Override the default Direct Update interface.
|
|
|
|
|
|
|
|
|
|
//uncomment below function to get custom DU
|
2021-06-23 09:19:09 +01:00
|
|
|
wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext) {
|
2021-04-07 09:13:07 +01:00
|
|
|
// Create a dialog.
|
|
|
|
|
navigator.notification.confirm(
|
2021-04-08 09:25:25 +01:00
|
|
|
'Actualização Disponivel',
|
2021-04-07 09:13:07 +01:00
|
|
|
// Handle dialog buttons.
|
|
|
|
|
function(buttonIndex) {
|
|
|
|
|
if (buttonIndex == 1) {
|
|
|
|
|
directUpdateContext.start();
|
|
|
|
|
} else {
|
|
|
|
|
wl_directUpdateChallengeHandler.submitFailure();
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-06-11 17:27:31 +01:00
|
|
|
'Actualização Disponivel',
|
2021-04-08 09:25:25 +01:00
|
|
|
['Actualizar']
|
2021-04-07 09:13:07 +01:00
|
|
|
);
|
2021-06-23 09:19:09 +01:00
|
|
|
};
|
2021-04-07 09:13:07 +01:00
|
|
|
|
|
|
|
|
}
|