Closed skar3 closed 8 years ago
Hi,
it's not a cordova version related problem, but rather a problem in your code.
The url
variable is defined inside the callback function of the .click
and is therefore not available outside of this scope.
If you move the var url = ...
declaration one line above (before the $('.attachment-list-url').click(function() {
line), the url
variable will be defined in your onTrySuccess
callback.
Note that your url points to a 404, so it will not be downloaded either way...
Regards
Hi, thank you, the URL it's an example site :)
Il giorno gio 18 feb 2016 19:53 Maxime Robert notifications@github.com ha scritto:
Hi,
it's not a cordova version related problem, but rather a problem in your code.
The url variable is defined inside the callback function of the .click and is therefore not available outside of this scope. If you move the var url = ... declaration one line above (before the $('.attachment-list-url').click(function() { line), the url variable will be defined in your onTrySuccess callback.
Note that your url points to a 404, so it will not be downloaded either way...
Regards
— Reply to this email directly or view it on GitHub https://github.com/Smile-SA/cordova-plugin-fileopener/issues/9#issuecomment-185858069 .
Hi, after cordova update to version 6.0.0 the plugin does not open urls that can be opened from my system, in particular when a jpg file is opened:
before upgrading cordova I had no problems
my code: