Skip to content

Commit

Permalink
Make webserver compatible with latest flask-socketio & company.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanvolz committed Apr 11, 2023
1 parent 561eede commit cb51838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</head>
<body>
<div id="map"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.js"></script>
<script src="./js/leaflet.rotatedMarker.js"></script>
<script src="./js/map.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion web/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

app = Flask(__name__, static_url_path="")
app.config["SECRET_KEY"] = "secret!"
socketio = SocketIO(app)
socketio = SocketIO(app, cors_allowed_origins=f"http://{HTTP_ADDRESS}:{HTTP_PORT}")


def zmq_thread():
Expand Down

0 comments on commit cb51838

Please sign in to comment.