Skip to content

Commit

Permalink
Merge pull request #129 from Djones4822/master
Browse files Browse the repository at this point in the history
Fix Browser path search issue
  • Loading branch information
sampart authored Apr 20, 2022
2 parents f3649d7 + c5d14dc commit 7e3fe44
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 0.1.14

* Fixed browser platform check for config.xml [Issue#128](https://github.com/sampart/cordova-plugin-app-version/issues/128)
* Fix browser platform xhr error handling missing parameter [Issue#118](https://github.com/sampart/cordova-plugin-app-version/issues/118)

### 0.1.13

* [iOS: getAppName to return localized value (like Android)](https://github.com/sampart/cordova-plugin-app-version/pull/127)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.13
0.1.14
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-app-version",
"version": "0.1.13",
"version": "0.1.14",
"description": "Cordova plugin to return the version number of the current app",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-app-version"
version="0.1.13">
version="0.1.14">

<name>AppVersion</name>
<description>
Expand Down
4 changes: 2 additions & 2 deletions src/browser/AppVersionProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ function readConfig(success, fail) {
}
});

xhr.addEventListener("error", function () {
xhr.addEventListener("error", function (e) {
fail(e);
});
xhr.open("get", "../config.xml", true);
xhr.open("get", "config.xml", true);
xhr.send();
}
else {
Expand Down

0 comments on commit 7e3fe44

Please sign in to comment.