Fixes issue with externalConnectUrl hash param when the value is null

pull/636/head
hristoterezov 9 years ago
parent bd7740cba1
commit d535765648
  1. 7
      connection_optimization/do_external_connect.js
  2. 2
      modules/API/API.js

@ -17,8 +17,11 @@
*/
(function () {
var params = getConfigParamsFromUrl();
var url = params["config.externalConnectUrl"] || config.externalConnectUrl;
//Url params have higher proirity than config params
var url = config.externalConnectUrl;
if(params.hasOwnProperty('config.externalConnectUrl'))
url = params["config.externalConnectUrl"];
/**
* Check if connect from connection.js was executed and executes the handler

@ -130,7 +130,7 @@ function processMessage(event) {
*/
function isEnabled () {
let hash = location.hash;
return hash && hash.indexOf("external") > -1 && window.postMessage;
return hash && hash.indexOf("external=true") > -1 && window.postMessage;
}
/**

Loading…
Cancel
Save