mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-19 03:42:52 +08:00
Fix require paths that were broken by plugin id changes
This commit is contained in:
parent
a025cdd4e6
commit
ff587d400e
@ -340,7 +340,7 @@
|
|||||||
document.addEventListener("deviceready", function() {
|
document.addEventListener("deviceready", function() {
|
||||||
deviceReady = true;
|
deviceReady = true;
|
||||||
platformId = cordova.require('cordova/platform').id;
|
platformId = cordova.require('cordova/platform').id;
|
||||||
CameraPopoverOptions = cordova.require('org.apache.cordova.core.CameraLauncher.CameraPopoverOptions');
|
CameraPopoverOptions = cordova.require('org.apache.cordova.core.camera.CameraPopoverOptions');
|
||||||
console.log("Device="+device.platform+" "+device.version);
|
console.log("Device="+device.platform+" "+device.version);
|
||||||
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
|
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
|
||||||
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);
|
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
var argscheck = require('cordova/argscheck'),
|
var argscheck = require('cordova/argscheck'),
|
||||||
exec = require('cordova/exec'),
|
exec = require('cordova/exec'),
|
||||||
Camera = require('org.apache.cordova.core.CameraLauncher.Camera'),
|
Camera = require('org.apache.cordova.core.camera.Camera'),
|
||||||
CameraPopoverHandle = require('org.apache.cordova.core.CameraLauncher.CameraPopoverHandle');
|
CameraPopoverHandle = require('org.apache.cordova.core.camera.CameraPopoverHandle');
|
||||||
|
|
||||||
var cameraExport = {};
|
var cameraExport = {};
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Camera = require('org.apache.cordova.core.CameraLauncher.Camera');
|
var Camera = require('org.apache.cordova.core.camera.Camera');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encapsulates options for iOS Popover image picker
|
* Encapsulates options for iOS Popover image picker
|
||||||
|
Loading…
Reference in New Issue
Block a user