@bbn/bbn 1.0.146 → 1.0.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1537,6 +1537,7 @@ var callback = function (url, res, fn, fn2, ele) {
1537
1537
  var t = typeof res;
1538
1538
  var isObj = t.toLowerCase() === 'object';
1539
1539
  var errTitle = void 0;
1540
+ bbn.fn.log("CALLBACK", res);
1540
1541
  if (isObj && res.prescript) {
1541
1542
  /* var ok can be changed to false in prescript execution */
1542
1543
  try {
@@ -1990,6 +1991,9 @@ var link = function () {
1990
1991
  }
1991
1992
  var cfg = (0,_treatAjaxArguments_js__WEBPACK_IMPORTED_MODULE_0__.treatAjaxArguments)(args);
1992
1993
  var ok = 1;
1994
+ if (cfg === true) {
1995
+ return true;
1996
+ }
1993
1997
  /* If we can't find a correct link we load the current URL */
1994
1998
  if (!cfg) {
1995
1999
  return link(window.location.href);
@@ -2034,7 +2038,7 @@ var link = function () {
2034
2038
  window.open(cfg.url);
2035
2039
  return false;
2036
2040
  }
2037
- else if (cfg.url !== bbn.env.params.join('/') || cfg.force) {
2041
+ else if (cfg.url !== bbn.env.params.join('/') || cfg.force === 1) {
2038
2042
  /* The URL is fine so go ahead if something is not already loading */
2039
2043
  /* If a second callback is defined, it is triggered instead of defaultPreLinkFunction */
2040
2044
  if (cfg.successFn) {