Skip to content

Commit

Permalink
simpler websocket determination
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 7, 2024
1 parent 77ba2f4 commit ccab5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auctions/templates/view_lot_images.html
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ <h5 class="modal-title" id="label">Bid failed!</h5>
{% endif %}
var viewer_bid = '{{ lot.viewer_bid }}';
const lotWebSocket = new WebSocket(
'ws{% if not debug %}s{% endif %}://'
(window.location.protocol === 'https:') ? 'wss://' : 'ws://'
+ window.location.host
+ '/ws/lots/{{ lot.lot_number }}/'
);
Expand Down

0 comments on commit ccab5c6

Please sign in to comment.