We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a737e7c commit ddb5a16Copy full SHA for ddb5a16
defaults/portal2/main.js
@@ -33,7 +33,7 @@ function wsMessageHandler (event) {
33
case "cmd": return SendToConsole(data.value);
34
case "ping": return ws.send(JSON.stringify({ type: "pong" }));
35
case "getMap": {
36
- if (pathExists(`maps/${file}.bsp`)) {
+ if (pathExists(`maps/${data.value.file}.bsp`)) {
37
ws.send(JSON.stringify({ type: "getMap", value: 1 }));
38
} else {
39
downloadMap(data.value.link, data.value.file);
0 commit comments