Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Base64 plugin #1645

Merged
merged 4 commits into from
Jun 3, 2017
Merged

Add Base64 plugin #1645

merged 4 commits into from
Jun 3, 2017

Conversation

akz92
Copy link
Contributor

@akz92 akz92 commented Jun 3, 2017

No description provided.

/**
* This function encodes base64 of any file
*
* @param {filePath} Absolute file path
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this line to @param filePath {string} Absolute file path

plugin: 'com-badrit-base64',
pluginRef: 'window.plugins.Base64',
repo: 'https://github.com/hazemhagrass/phonegap-base64',
install: 'ionic cordova plugin add com-badrit-base64',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line

plugin: 'com-badrit-base64',
pluginRef: 'window.plugins.Base64',
repo: 'https://github.com/hazemhagrass/phonegap-base64',
install: 'ionic cordova plugin add com-badrit-base64',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This install line is not needed since the plugin doesn't require any variables.

@Plugin({
pluginName: 'Base64',
plugin: 'com-badrit-base64',
pluginRef: 'window.plugins.Base64',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to have window. here... plugins.Base64 is sufficient

/**
* This function encodes base64 of any file
*
* @param {filePath} Absolute file path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should read:

  * @param {string} filePath Absolute file path


/**
* This function encodes base64 of any file
*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove blank JSDoc line here

@ihadeed ihadeed merged commit 793e2e3 into danielsogl:master Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants