MCPcopy Create free account
hub / github.com/apache/storm / getCookie

Function getCookie

storm-webapp/src/main/webapp/js/script.js:22–25  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

20// and also on pages that don't use the main entry point.
21(function() {
22 function getCookie(name) {
23 var match = document.cookie.match(new RegExp('(?:^|;\\s*)' + name + '=([^;]*)'));
24 return match ? decodeURIComponent(match[1]) : null;
25 }
26 function setCookie(name, value) {
27 var d = new Date();
28 d.setFullYear(d.getFullYear() + 1);

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected