1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 18:34:25 +01:00

socketio: deliver local static copy of scripts

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-03-18 16:11:17 +01:00
parent 746b68eaf1
commit ae0d4f5aa2
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
{% block scripts %} {% block scripts %}
{{ super() }} {{ super() }}
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script> <script type="text/javascript" src="static/socket.io.slim.js"></script>
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
$(document).ready(function() { $(document).ready(function() {
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port) var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port)