Merge pull request #5480 from preco21/patch-3

docs: Match object notation style
This commit is contained in:
Machisté N. Quintana 2016-05-10 21:27:45 -07:00
commit 8bb097e0a4

View file

@ -89,13 +89,13 @@ session.defaultSession.cookies.get({}, (error, cookies) => {
});
// Query all cookies associated with a specific url.
session.defaultSession.cookies.get({url : 'http://www.github.com'}, (error, cookies) => {
session.defaultSession.cookies.get({url: 'http://www.github.com'}, (error, cookies) => {
console.log(cookies);
});
// Set a cookie with the given cookie data;
// may overwrite equivalent cookies if they exist.
const cookie = {url : 'http://www.github.com', name : 'dummy_name', value : 'dummy'};
const cookie = {url: 'http://www.github.com', name: 'dummy_name', value: 'dummy'};
session.defaultSession.cookies.set(cookie, (error) => {
if (error)
console.error(error);