mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
updated test file
This commit is contained in:
parent
abffce6983
commit
ac4e93c86e
@ -33,8 +33,8 @@
|
|||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
|
||||||
var deviceReady = false;
|
var deviceReady = false;
|
||||||
var platformId = cordova.require('cordova/platform').id;
|
var platformId = null;
|
||||||
var CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.CameraPopoverOptions');
|
var CameraPopoverOptions = null;
|
||||||
var pictureUrl = null;
|
var pictureUrl = null;
|
||||||
var fileObj = null;
|
var fileObj = null;
|
||||||
var fileEntry = null;
|
var fileEntry = null;
|
||||||
@ -339,6 +339,8 @@
|
|||||||
function init() {
|
function init() {
|
||||||
document.addEventListener("deviceready", function() {
|
document.addEventListener("deviceready", function() {
|
||||||
deviceReady = true;
|
deviceReady = true;
|
||||||
|
platformId = cordova.require('cordova/platform').id;
|
||||||
|
CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.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);
|
||||||
|
Loading…
Reference in New Issue
Block a user