mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +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() {
|
||||
deviceReady = true;
|
||||
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);
|
||||
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
|
||||
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);
|
||||
|
@ -21,8 +21,8 @@
|
||||
|
||||
var argscheck = require('cordova/argscheck'),
|
||||
exec = require('cordova/exec'),
|
||||
Camera = require('org.apache.cordova.core.CameraLauncher.Camera'),
|
||||
CameraPopoverHandle = require('org.apache.cordova.core.CameraLauncher.CameraPopoverHandle');
|
||||
Camera = require('org.apache.cordova.core.camera.Camera'),
|
||||
CameraPopoverHandle = require('org.apache.cordova.core.camera.CameraPopoverHandle');
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user