mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 15:30:00 -04:00
chore: prettier
This commit is contained in:
parent
520f3bb8bc
commit
3678965721
2 changed files with 9 additions and 4 deletions
|
@ -51,8 +51,8 @@ export default {
|
||||||
}[severity];
|
}[severity];
|
||||||
|
|
||||||
fn(
|
fn(
|
||||||
`%c${fmt}%c ${message}`,
|
`%c${fmt}%c ${message}`,
|
||||||
`
|
`
|
||||||
background-color: ${bg};
|
background-color: ${bg};
|
||||||
color: ${fg};
|
color: ${fg};
|
||||||
padding: ${padding}px;
|
padding: ${padding}px;
|
||||||
|
@ -60,7 +60,9 @@ export default {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
`,
|
`,
|
||||||
`${severity === "debug" ? "color: gray" : ""}`, ...args);
|
`${severity === "debug" ? "color: gray" : ""}`,
|
||||||
|
...args
|
||||||
|
);
|
||||||
},
|
},
|
||||||
log: function (message: string, ...args: any[]) {
|
log: function (message: string, ...args: any[]) {
|
||||||
this.fmt("log", message, ...args);
|
this.fmt("log", message, ...args);
|
||||||
|
|
|
@ -53,7 +53,10 @@ export class CookieStore {
|
||||||
|
|
||||||
const id = `${cookie.domain}@${cookie.path}@${cookie.name}`;
|
const id = `${cookie.domain}@${cookie.path}@${cookie.name}`;
|
||||||
this.cookies[id] = cookie;
|
this.cookies[id] = cookie;
|
||||||
this.db.transaction("cookies", "readwrite").objectStore("cookies").put(this.cookies, "cookies");
|
this.db
|
||||||
|
.transaction("cookies", "readwrite")
|
||||||
|
.objectStore("cookies")
|
||||||
|
.put(this.cookies, "cookies");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue