Skip to content
Snippets Groups Projects
Commit 5881d39c authored by imcovangent's avatar imcovangent
Browse files

Merge branch 'dev_0_9_session_to_local_storage' into dev_0_9

Former-commit-id: 52460cf53397609d6ad1e23597af21b170246042
parents 5f3ed447 61b42756
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,22 @@
{
alert("OOPS! VISTOMS unfortunately does not work properly on " + bowser.name + ". Please use a different browser to see its awesome visualization features!")
}
/* see docs: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage */
if (window && window.localStorage)
{
var storage = window.localStorage;
var existingSessionId = storage.getItem('sessionId');
if (existingSessionId)
{
sessionID = existingSessionId;
}
else {
storage.setItem('sessionId', sessionID);
}
}
//aigner: Include function
function include(arr,obj) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment