@bbn/bbn 1.0.146 → 1.0.147

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.
@@ -1990,6 +1990,9 @@ var link = function () {
1990
1990
  }
1991
1991
  var cfg = (0,_treatAjaxArguments_js__WEBPACK_IMPORTED_MODULE_0__.treatAjaxArguments)(args);
1992
1992
  var ok = 1;
1993
+ if (cfg === true) {
1994
+ return true;
1995
+ }
1993
1996
  /* If we can't find a correct link we load the current URL */
1994
1997
  if (!cfg) {
1995
1998
  return link(window.location.href);
@@ -2034,7 +2037,7 @@ var link = function () {
2034
2037
  window.open(cfg.url);
2035
2038
  return false;
2036
2039
  }
2037
- else if (cfg.url !== bbn.env.params.join('/') || cfg.force) {
2040
+ else if (cfg.url !== bbn.env.params.join('/') || cfg.force === 1) {
2038
2041
  /* The URL is fine so go ahead if something is not already loading */
2039
2042
  /* If a second callback is defined, it is triggered instead of defaultPreLinkFunction */
2040
2043
  if (cfg.successFn) {