diff --git a/src/blackberry10/index.js b/src/blackberry10/index.js index b913368..74cb191 100644 --- a/src/blackberry10/index.js +++ b/src/blackberry10/index.js @@ -60,7 +60,7 @@ function showCameraDialog (done, cancel, fail) { }); wv.on('JavaScriptCallback', function (evt, data) { var args = JSON.parse(data).args; - if (args[0] === 'cordova-plugin-camera') { + if (args[0] === 'org.apache.cordova.camera') { if (args[1] === 'cancel') { cancel('User canceled'); } else if (args[1] === 'error') { diff --git a/www/blackberry10/assets/camera.js b/www/blackberry10/assets/camera.js index a149b93..6d163d0 100644 --- a/www/blackberry10/assets/camera.js +++ b/www/blackberry10/assets/camera.js @@ -20,7 +20,7 @@ document.addEventListener('DOMContentLoaded', function () { document.getElementById('back').onclick = function () { - window.qnx.callExtensionMethod('cordova-plugin-camera', 'cancel'); + window.qnx.callExtensionMethod('org.apache.cordova.camera', 'cancel'); }; window.navigator.webkitGetUserMedia( { video: true }, @@ -36,11 +36,11 @@ document.addEventListener('DOMContentLoaded', function () { canvas.width = video.videoWidth; canvas.height = video.videoHeight; canvas.getContext('2d').drawImage(video, 0, 0, video.videoWidth, video.videoHeight); - window.qnx.callExtensionMethod('cordova-plugin-camera', canvas.toDataURL('img/png')); + window.qnx.callExtensionMethod('org.apache.cordova.camera', canvas.toDataURL('img/png')); }; }, function () { - window.qnx.callExtensionMethod('cordova-plugin-camera', 'error', 'getUserMedia failed'); + window.qnx.callExtensionMethod('org.apache.cordova.camera', 'error', 'getUserMedia failed'); } ); });