repo.or.cz
/
KisSync.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update README.md
[KisSync.git]
/
src
/
web
/
localchannelindex.js
blob
c8ed5eb4a5834184427da66cb41d63d755accb3d
1
import
Promise
from
'bluebird'
;
2
3
var
SERVER
=
null
;
4
5
export default class
LocalChannelIndex
{
6
listPublicChannels
() {
7
if
(
SERVER
===
null
) {
8
SERVER
=
require
(
'../server'
).
getServer
();
9
}
10
11
return
Promise
.
resolve
(
SERVER
.
packChannelList
(
true
));
12
}
13
}