mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-04 14:19:55 -06:00
Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com> Co-authored-by: Gleb Bahmutov <gleb.bahmutov@gmail.com> Co-authored-by: Brian Mann <brian.mann86@gmail.com> Co-authored-by: Zach Bloomquist <github@chary.us> Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
8 lines
176 B
JavaScript
8 lines
176 B
JavaScript
module.exports = {
|
|
getCookieUrl: (cookie = {}) => {
|
|
const prefix = cookie.secure ? 'https://' : 'http://'
|
|
|
|
return prefix + cookie.domain + (cookie.path || '')
|
|
},
|
|
}
|