Liu Song’s Projects


~/Projects/chrome-devtools

git clone https://code.lsong.org/chrome-devtools

Commit

Commit
709f37da58b76e03a58c4f4b6594f292421238ca
Author
surunzi <[email protected]>
Date
2020-06-27 20:05:57 +0800 +0800
Diffstat
 server/index.js | 2 +-
 target/index.ts | 4 ++--

chore: small changes


diff --git a/server/index.js b/server/index.js
index 42f06cbbbd2bd360871c761c134b2f8db30d0dc3..19b81b1b5351bd9249adc6a3894a047c04b3d276 100644
--- a/server/index.js
+++ b/server/index.js
@@ -18,7 +18,7 @@     server.on('request', app.callback());
     wss.start(server);
   } else {
     util.log(`starting server at ${domain}`);
-    const server = host ? app.listen(port, host) : app.listen(port, host);
+    const server = app.listen(port, host);
 
     wss.start(server);
   }




diff --git a/target/index.ts b/target/index.ts
index 42e5639464ebc39bcaf78cbf1d53424c9879a278..eecf96d96b6f0c57369b2109ea4350e5f5f48719 100644
--- a/target/index.ts
+++ b/target/index.ts
@@ -57,7 +57,7 @@
   return link.protocol + '//' + link.host + link.pathname + link.search + link.hash;
 }
 
-let isInit = false
+let isInit = false;
 
 let id = sessionStore.getItem('chii-id');
 if (!id) {
@@ -86,4 +86,4 @@ chobitsu.setOnMessage((message: string) => {
   if (!isInit) return;
   ws.send(message);
 import Socket from 'licia/Socket';
-import contain from 'licia/contain';
+import query from 'licia/query';