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 6622155 commit 8c7ee80Copy full SHA for 8c7ee80
src/index.coffee
@@ -14,6 +14,12 @@ module.exports=(mode)->
14
sf={}
15
socketInfo={}
16
port=process.env.PORT or 8080
17
+
18
+ app.use (req, res, next)->
19
+ res.setHeader 'Content-Security-Policy', 'worker-src *'
20
+ next()
21
+ return
22
23
if mode is "production"
24
app.use express.static "#{__dirname}/client/dist"
25
else
@@ -127,7 +133,7 @@ module.exports=(mode)->
127
133
[0,1,0]
128
134
[0,-1,0]
129
135
]
130
- if socketInfo[socket.id].held isnt undefined socketInfo[socket.id].held isnt null
136
+ if socketInfo[socket.id].held isnt undefined and socketInfo[socket.id].held isnt null
131
137
console.log socketInfo[socket.id].held
132
138
bot().placeBlock block,new vec3(vec...),(r)->
139
console.log r
0 commit comments