Sha256: 32578e519f2246d3ead5d68e52ab04b147b82487ba16cad453ea92fb6ada5c2a

Contents?: true

Size: 625 Bytes

Versions: 10

Compression:

Stored size: 625 Bytes

Contents

require.def("core/cookies",["core/lib"],function(f){return{getCookie:function(c){for(var b=document.cookie.split(";"),a=0;a<b.length;a++){var d=b[a].split("=");if(f.trim(d[0])==c)return d[1].length?unescape(f.trim(d[1])):null}},setCookie:function(c,b,a,d,g,h){var e=new Date;e.setTime(e.getTime());if(a)a=a*1E3*60*60*24;e=new Date(e.getTime()+a);document.cookie=c+"="+escape(b)+(a?";expires="+e.toGMTString():"")+(d?";path="+d:"")+(g?";domain="+g:"")+(h?";secure":"")},removeCookie:function(c,b,a){if(this.getCookie(c))document.cookie=
c+"="+(b?";path="+b:"")+(a?";domain="+a:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
har-0.0.9 lib/har/viewer/scripts/core/cookies.js
har-0.0.8 lib/har/viewer/scripts/core/cookies.js
har-0.0.7 lib/har/viewer/scripts/core/cookies.js
har-0.0.6 lib/har/viewer/scripts/core/cookies.js
har-0.0.5 lib/har/viewer/scripts/core/cookies.js
har-0.0.4 lib/har/viewer/scripts/core/cookies.js
har-0.0.3 lib/har/viewer/scripts/core/cookies.js
har-0.0.2 lib/har/viewer/scripts/core/cookies.js
har-0.0.1 lib/har/viewer/scripts/core/cookies.js
har-0.0.1.dev lib/har/viewer/scripts/core/cookies.js