ewd-client
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -27,3 +27,3 @@ /*! | ||
24 October 2016 | ||
17 December 2016 | ||
@@ -74,3 +74,6 @@ */ | ||
//console.log('starting ewd-client: ' + JSON.stringify(application)); | ||
var url; | ||
var cookieName = 'ewdSession'; | ||
var appName = application; | ||
@@ -83,4 +86,11 @@ if (typeof application === 'object') { | ||
appName = application.application; | ||
cookieName = application.cookieName; | ||
} | ||
function getCookie(name) { | ||
var value = "; " + document.cookie; | ||
var parts = value.split("; " + name + "="); | ||
if (parts.length == 2) return parts.pop().split(";").shift(); | ||
} | ||
(function(application, io, customAjaxFn, url) { | ||
@@ -274,2 +284,6 @@ | ||
//console.log('token: ' + token + '; ' + cookieName + ' cookie: ' + getCookie(cookieName)); | ||
if (!token && cookieName && getCookie(cookieName)) token = getCookie(cookieName); | ||
if (token) { | ||
@@ -276,0 +290,0 @@ // re-connection occured - re-register to attach to original Session |
{ | ||
"name": "ewd-client", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"description": "Browser (websocket & HTTP) Client for ewd-xpress applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17500
348