mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] try to avoid CSP issue
This commit is contained in:
parent
5a01e1e9a2
commit
d239123f19
2 changed files with 2 additions and 2 deletions
2
run.py
2
run.py
|
@ -283,7 +283,7 @@ async def index_ws(request, websocket):
|
|||
await websocket.recv()
|
||||
|
||||
|
||||
@app.websocket('/job-<job_id>-ws')
|
||||
@app.websocket('/job/<job_id>-ws')
|
||||
async def job_ws(request, websocket, job_id):
|
||||
job = Job.select().where(Job.id == job_id)
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
}
|
||||
})
|
||||
|
||||
ws = new WebSocket(websocketPrefix() + '://' + document.domain + ':' + location.port + websocketRelativePath('<{ path }>') + '/job-<{ job.id }>-ws');
|
||||
ws = new WebSocket(websocketPrefix() + '://' + document.domain + ':' + location.port + websocketRelativePath('<{ path }>') + '/job/<{ job.id }>-ws');
|
||||
|
||||
ws.onmessage = function (event) {
|
||||
var message = JSON.parse(event.data);
|
||||
|
|
Loading…
Add table
Reference in a new issue