mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
12 lines
388 B
JavaScript
12 lines
388 B
JavaScript
|
var exec = require("cordova/exec");
|
||
|
|
||
|
function FileOpener2() {};
|
||
|
|
||
|
FileOpener2.prototype.open = function(fileName, contentType, callbackContext) {
|
||
|
callbackContext = callbackContext || {};
|
||
|
exec(callbackContext.success || null, callbackContext.error || null, "FileOpener2", "open", [fileName, contentType]);
|
||
|
};
|
||
|
|
||
|
var fileOpener2 = new FileOpener2();
|
||
|
module.exports = fileOpener2;
|