Skip to content

Commit

Permalink
remove window
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Jul 28, 2016
1 parent 40bd9bb commit aa51c03
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plugins/imageresizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface ImageResizerOptions {
folderName?: string;

/**
*
*
* Quality given as Number for the quality of the new image
* (Android and iOS only)
*/
Expand All @@ -40,24 +40,24 @@ export interface ImageResizerOptions {
* @name ImageResizer
* @description
* Cordova Plugin For Image Resize
*
*
* Requires plugin `info.protonet.imageresizer` - use the Ionic CLI and type in the following command:
* `ionic plugin add https://github.com/protonet/cordova-plugin-image-resizer.git`
*
*
* For more info, please see the https://github.com/protonet/cordova-plugin-image-resizer
*
*
* @usage
* ```typescript
* import { ImageResizer, ImageResizerOptions } from 'ionic-native';
*
*
* let options = {
* uri: uri,
* folderName: 'Protonet',
* quality: 90,
* width: 1280,
* height: 1280
* } as ImageResizerOptions;
*
*
* ImageResizer
* .resize(options)
* .then(
Expand All @@ -68,10 +68,10 @@ export interface ImageResizerOptions {
*/
@Plugin({
plugin: 'https://github.com/protonet/cordova-plugin-image-resizer.git',
pluginRef: 'window.ImageResizer',
pluginRef: 'ImageResizer',
repo: 'https://github.com/protonet/cordova-plugin-image-resizer'
})
export class ImageResizer {
export class ImageResizer {
@Cordova()
static resize(options: ImageResizerOptions): Promise<any> { return; }
}

0 comments on commit aa51c03

Please sign in to comment.