fix data error

This commit is contained in:
pengfei.zhou 2019-08-23 10:57:49 +08:00
parent 9209254af5
commit 820f1e9f8c

View File

@ -19,7 +19,7 @@ setTimeout(() => {
const sourceMap = doMerge(path + ".map")
ws.connections.forEach(e => {
e.sendText(JSON.stringify({
script: fs.readFileSync(path),
script: data,
source: path.match(/[^/\\]*$/)[0],
sourceMap,
}))