fix data error
This commit is contained in:
parent
9209254af5
commit
820f1e9f8c
@ -19,7 +19,7 @@ setTimeout(() => {
|
|||||||
const sourceMap = doMerge(path + ".map")
|
const sourceMap = doMerge(path + ".map")
|
||||||
ws.connections.forEach(e => {
|
ws.connections.forEach(e => {
|
||||||
e.sendText(JSON.stringify({
|
e.sendText(JSON.stringify({
|
||||||
script: fs.readFileSync(path),
|
script: data,
|
||||||
source: path.match(/[^/\\]*$/)[0],
|
source: path.match(/[^/\\]*$/)[0],
|
||||||
sourceMap,
|
sourceMap,
|
||||||
}))
|
}))
|
||||||
|
Reference in New Issue
Block a user