mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-24 16:28:05 -05:00
store: use lower-case for buffer keys
This commit is contained in:
parent
cdd2da90a9
commit
aaef4e1629
1 changed files with 3 additions and 2 deletions
5
store.js
5
store.js
|
@ -57,11 +57,12 @@ export class Buffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
key(buf) {
|
key(buf) {
|
||||||
|
// TODO: use case-mapping here somehow
|
||||||
return JSON.stringify({
|
return JSON.stringify({
|
||||||
name: buf.name,
|
name: buf.name.toLowerCase(),
|
||||||
server: {
|
server: {
|
||||||
url: buf.server.url,
|
url: buf.server.url,
|
||||||
nick: buf.server.nick,
|
nick: buf.server.nick.toLowerCase(),
|
||||||
bouncerNetwork: buf.server.bouncerNetwork,
|
bouncerNetwork: buf.server.bouncerNetwork,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue