Skip to content

Commit

Permalink
remove references to old server
Browse files Browse the repository at this point in the history
  • Loading branch information
jboecker committed Mar 7, 2014
1 parent 50acde8 commit 16824c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/planner_ng-mapview.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ mp.MapView = function(map_type) {
vectorLayers.push(new OpenLayers.Layer.Vector("Airport Information by kosmos224", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "https://dcs-mission-planner.herokuapp.com/airports.kml",
url: mp.settings.server_base_url + "airports.kml",
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true,
Expand Down
3 changes: 2 additions & 1 deletion js/planner_ng.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mp = mp || {};
mp.settings = {};
mp.settings.websocket_url = "wss://dcs-mission-planner.herokuapp.com/websocket/";
mp.settings.websocket_url = "";

$.support.cors = true;
$(function() {
Expand Down Expand Up @@ -115,6 +115,7 @@ $(function() {
var ws_uri = new URI();
ws_uri.scheme(u.scheme() == "https" ? "wss" : "ws").host(u.host()).path("/websocket/");
mp.settings.websocket_url = ws_uri.toString();
mp.settings.server_base_url = (new URI()).scheme(u.scheme()).host(u.host()).path("/").toString();

connect(u.query(true).instance_id, u.username(), u.password());
});
Expand Down

0 comments on commit 16824c1

Please sign in to comment.