📝 Match object notation style

[ci skip]
This commit is contained in:
Plusb Preco 2016-05-11 10:30:02 +09:00
parent ed70a11ff8
commit 4cdba29fbd

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);