Pārlūkot izejas kodu

Add redirect to websocket enabled site

Openshift only supports websockets on port 8000 as opposed to 80
Thomas Dy 11 gadi atpakaļ
vecāks
revīzija
eac768a789
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      public/javascripts/main.js

+ 4 - 0
public/javascripts/main.js

@@ -1,3 +1,7 @@
+if(window.location.hostname == 'gamenchat.pleasantprogrammer.com' && window.location.port != 8000) {
+  window.location = 'http://gamenchat.pleasantprogrammer.com:8000';
+}
+
 angular.module('taboo', ['chatServices', 'tabooServices'])
 
 function partial(template) {