Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-file-opener2

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-file-opener2 - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

package.json
{
"name": "cordova-plugin-file-opener2",
"version": "3.0.1",
"version": "3.0.2",
"description": "A File Opener Plugin for Cordova. (The Original Version)",

@@ -5,0 +5,0 @@ "cordova": {

@@ -43,2 +43,14 @@ # A File Opener Plugin for Cordova (The Original Version)

### AndroidX Support
Currently if your project requires AndroidX support, you need to add the following two plugins to your project:
- [cordova-plugin-androidx](https://github.com/dpa99c/cordova-plugin-androidx/) and [cordova-plugin-androidx-adapter](https://github.com/dpa99c/cordova-plugin-androidx-adapter/)
```shell
$ cordova plugin add cordova-plugin-androidx
$ cordova plugin add cordova-plugin-androidx-adapter
```
Just adding these plugins should be enough and no further changes are necessary.
## fileOpener2.open(filePath, mimeType, options)

@@ -45,0 +57,0 @@

@@ -38,3 +38,3 @@ /*jslint browser: true, devel: true, node: true, sloppy: true, plusplus: true*/

callbackContext = callbackContext || {};
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position]);
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position || [0, 0]]);
};

@@ -41,0 +41,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc