(key)
| 18 | |
| 19 | window.using = function (assert) { |
| 20 | function getQuery(key) { |
| 21 | var queries = window.location.href.split('?')[1] |
| 22 | if (!queries) { |
| 23 | return |
| 24 | } |
| 25 | var pairs = queries.split(/&|=/) |
| 26 | var indexBaseURL = pairs.indexOf(key) |
| 27 | var result = pairs[indexBaseURL + 1] |
| 28 | if (result) { |
| 29 | return decodeURIComponent(result) |
| 30 | } |
| 31 | } |
| 32 | function setCookie(name, value) { |
| 33 | return { |
| 34 | then: function (callback) { |
no outgoing calls
no test coverage detected
searching dependent graphs…