diff --git a/butterfly/static/coffees/main.coffee b/butterfly/static/coffees/main.coffee index e427b12..35f0362 100644 --- a/butterfly/static/coffees/main.coffee +++ b/butterfly/static/coffees/main.coffee @@ -28,7 +28,7 @@ ctl = (type, args...) -> if type == 'Resize' ws.send 'R' + params -if localtion.protocol == 'https:' +if location.protocol == 'https:' ws_url = 'wss://' else ws_url = 'ws://'