Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 4a90b8a

Browse files
Merge pull request #293 from feedhenry/IMP_COR_MSG
Add message when has error to initializer
2 parents 79fa671 + e434159 commit 4a90b8a

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog - FeedHenry Javascript SDK
22

3+
## 3.0.12 - 2018-11-30
4+
### Fix
5+
- Add default result for init requests across domains when the result is not successful which is expected when the connection tag is disable.
6+
37
## 3.0.11 - 2018-08-29
48
### Fix
59
- Unable to build client app regards issue introduce in the changes made in the version 3.0.3.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fh-js-sdk",
3-
"version": "3.0.11",
3+
"version": "3.0.12",
44
"description": "feedhenry js sdk",
55
"main": "dist/feedhenry.js",
66
"types": "./fh-js-sdk.d.ts",

src/modules/initializer.js

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ var loadCloudProps = function(app_props, callback) {
9494
if (req && req.status === 400) {
9595
logger.error(req.responseText);
9696
} else {
97+
if ( !req && !statusText && !error ) {
98+
statusText = "Connection tag may be disabled";
99+
error = "No cached host found. Init failed.";
100+
}
97101
logger.error("No cached host found. Init failed.");
98102
}
99103
handleError(function(msg, err) {

0 commit comments

Comments
 (0)