Commit 7df60890 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

Comment debug msg (#1430)

parent eb8d386a
......@@ -11,8 +11,7 @@
tmp = JSON.parse($(this).text());
results = [];
for (k in tmp) {
values[k] = tmp[k];
results.push(console.log('values=', values[k]));
results.push(values[k] = tmp[k]);
}
return results;
} catch (error) {
......@@ -25,11 +24,8 @@
message = e.data;
console.log('message=', message);
client_id = decodeURIComponent(message.split(' ')[0]);
console.log('client_id=', client_id);
session_state = decodeURIComponent(message.split(' ')[1]);
console.log('session_state=', session_state);
salt = decodeURIComponent(session_state.split('.')[1]);
console.log('salt=', salt);
word = CryptoJS.enc.Utf8.parse(client_id + ' ' + e.origin + ' ' + salt);
ss = CryptoJS.enc.Base64.stringify(word) + '.' + salt;
if (session_state === ss) {
......
(function(){var values;values={};$(document).ready(function(){$("script[type='application/init']").each(function(){var e,k,results,tmp;try{tmp=JSON.parse($(this).text());results=[];for(k in tmp){values[k]=tmp[k];results.push(console.log("values=",values[k]))}return results}catch(error){e=error;return console.log("Parsing error",e)}});return window.addEventListener("message",function(e){var client_id,message,salt,session_state,ss,stat,word;message=e.data;console.log("message=",message);client_id=decodeURIComponent(message.split(" ")[0]);console.log("client_id=",client_id);session_state=decodeURIComponent(message.split(" ")[1]);console.log("session_state=",session_state);salt=decodeURIComponent(session_state.split(".")[1]);console.log("salt=",salt);word=CryptoJS.enc.Utf8.parse(client_id+" "+e.origin+" "+salt);ss=CryptoJS.enc.Base64.stringify(word)+"."+salt;if(session_state===ss){stat="unchanged"}else{stat="changed"}return e.source.postMessage(stat,e.origin)},false)})}).call(this);
(function(){var values;values={};$(document).ready(function(){$("script[type='application/init']").each(function(){var e,k,results,tmp;try{tmp=JSON.parse($(this).text());results=[];for(k in tmp){results.push(values[k]=tmp[k])}return results}catch(error){e=error;return console.log("Parsing error",e)}});return window.addEventListener("message",function(e){var client_id,message,salt,session_state,ss,stat,word;message=e.data;console.log("message=",message);client_id=decodeURIComponent(message.split(" ")[0]);session_state=decodeURIComponent(message.split(" ")[1]);salt=decodeURIComponent(session_state.split(".")[1]);word=CryptoJS.enc.Utf8.parse(client_id+" "+e.origin+" "+salt);ss=CryptoJS.enc.Base64.stringify(word)+"."+salt;if(session_state===ss){stat="unchanged"}else{stat="changed"}return e.source.postMessage(stat,e.origin)},false)})}).call(this);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment