cordova-plugin-file-opener2
Advanced tools
Comparing version 2.1.2 to 2.1.4
{ | ||
"name": "cordova-plugin-file-opener2", | ||
"version": "2.1.2", | ||
"version": "2.1.4", | ||
"description": "A File Opener Plugin for Cordova. (The Original Version)", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -155,15 +155,4 @@ # A File Opener Plugin for Cordova (The Original Version) | ||
``` | ||
--- | ||
## Notes | ||
- For properly opening _any_ file, you must already have a suitable reader for that particular file type installed on your device. Otherwise this will not work. | ||
- [It is reported](https://github.com/pwlin/cordova-plugin-file-opener2/issues/2#issuecomment-41295793) that in iOS, you might need to remove `<preference name="iosPersistentFileLocation" value="Library" />` from your `config.xml` | ||
- If you are wondering what MIME-type should you pass as the second argument to `open` function, [here is a list of all known MIME-types](http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co) | ||
--- | ||
## Android APK installation limitation | ||
@@ -183,1 +172,15 @@ | ||
--- | ||
## Notes | ||
- For properly opening _any_ file, you must already have a suitable reader for that particular file type installed on your device. Otherwise this will not work. | ||
- [It is reported](https://github.com/pwlin/cordova-plugin-file-opener2/issues/2#issuecomment-41295793) that in iOS, you might need to remove `<preference name="iosPersistentFileLocation" value="Library" />` from your `config.xml` | ||
- If you are wondering what MIME-type should you pass as the second argument to `open` function, [here is a list of all known MIME-types](http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co) | ||
--- | ||
@@ -29,6 +29,6 @@ /*jslint browser: true, devel: true, node: true, sloppy: true, plusplus: true*/ | ||
FileOpener2.prototype.open = function (fileName, contentType, options) { | ||
FileOpener2.prototype.open = function (fileName, contentType, callbackContext) { | ||
contentType = contentType || ''; | ||
options = options || {}; | ||
exec(options.success || null, options.error || null, 'FileOpener2', 'open', [fileName, contentType, false, options.position]); | ||
callbackContext = callbackContext || {}; | ||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType]); | ||
}; | ||
@@ -35,0 +35,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
185
32716