Browse Source

Add redirect to websocket enabled site

Openshift only supports websockets on port 8000 as opposed to 80
Thomas Dy 11 years ago
parent
commit
eac768a789
1 changed files with 4 additions and 0 deletions
  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) {