Commit b0974e49 authored by Linshizhi's avatar Linshizhi

Karma config

parent 37a23efe
......@@ -36,7 +36,8 @@ module.exports = function(config) {
],
proxies: {
'/tmp': '/base/tmp/'
'/tmp': '/base/tmp/',
'/src': '/base/src/',
},
......
import { sleep } from '../src/utils.js';
import * as MSG from '../src/encGrooupMsg.js';
import { Channel } from '../src/channel.js';
import { sleep } from '/src/utils.js';
import * as MSG from '/src/encGrooupMsg.js';
import { Channel } from '/src/channel.js';
let isInited = false;
let isBridged = false;
......@@ -31,7 +31,7 @@ async function main(msg) {
switch (MSG.typeOfMsg(msg)) {
case MSG.MESSAGE_TYPE.INIT:
init(msg);
if (!isInited) init(msg);
break;
case MSG.MESSAGE_TYPE.DATA:
await steps();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment