diff --git a/resources/library/applications/Papier.wgt/papier.js b/resources/library/applications/Papier.wgt/papier.js index 4d081a9c9..1aa28ffbf 100644 --- a/resources/library/applications/Papier.wgt/papier.js +++ b/resources/library/applications/Papier.wgt/papier.js @@ -659,7 +659,7 @@ $(document).on('click', '.bouton_commande', function (e) { var canvas = document.getElementById('feuille'); var adresse=canvas.toDataURL('image/png',0.1); // Compression forte (0.1) car sans compression (1), image générée trop lourde à charger sous windows // Décallage pour voir toutes les étiquettes - sankore.addObject(adresse,'100%','100%',0,0,true); + sankore.addObject(adresse,0,0,0,0,true); //~ Description Ajoute l'objet à la scène //~ Paramètres //~ [QString] pUrl: the object URL. @@ -1075,4 +1075,4 @@ function dessiner(type_papier,zone){ break; } -} \ No newline at end of file +} diff --git a/resources/library/applications/Stopwatch.wgt/js/ubw-main.js b/resources/library/applications/Stopwatch.wgt/js/ubw-main.js index 54104b3e3..3f413c89c 100644 --- a/resources/library/applications/Stopwatch.wgt/js/ubw-main.js +++ b/resources/library/applications/Stopwatch.wgt/js/ubw-main.js @@ -13,16 +13,16 @@ * along with this program. If not, see . */ -function init(){ +async function init(){ var tempHours; var tempMinutes; var tempSeconds; if(window.sankore){ - tempHours = window.sankore.preference("hours","00"); - tempMinutes = window.sankore.preference("minutes","00"); - tempSeconds = window.sankore.preference("seconds","00"); + tempHours = await window.sankore.async.preference("hours","00"); + tempMinutes = await window.sankore.async.preference("minutes","00"); + tempSeconds = await window.sankore.async.preference("seconds","00"); } else { tempHours = "00"; tempMinutes = "00"; @@ -402,4 +402,4 @@ function init(){ var ad = document.getElementById("audio" + type); ad.play(); } -} \ No newline at end of file +}