mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Revert "JSON object should be at index 0, not 1."
This reverts commit 4048cb4276.
This commit is contained in:
@@ -71,7 +71,7 @@ public class ThumbnailCreator extends Plugin {
|
||||
|
||||
try
|
||||
{
|
||||
JSONObject params = args.getJSONObject (0);
|
||||
JSONObject params = args.getJSONObject (1);
|
||||
String sourceImageUrl = params.has ("sourceImageUrl") ? params.getString ( "sourceImageUrl" ) : "";
|
||||
String targetImageUrl = params.has ("targetImageUrl") ? params.getString ( "targetImageUrl" ) : "";
|
||||
Integer newWidth = params.has ("newWidth") ? params.getInt("newWidth") : 1024;
|
||||
|
||||
Reference in New Issue
Block a user