Skip to content

Commit

Permalink
recording: Use relative url for loading presentation data
Browse files Browse the repository at this point in the history
This fixes loading the shapes svg, and the events and cursor xml files
on servers configured with https support. (Otherwise they'll be loaded
off http:// and trigger mixed-content errors).
  • Loading branch information
kepstin committed Nov 6, 2015
1 parent 0e3e902 commit 39cc6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -411,8 +411,7 @@ var cursorStyle;

var params = getUrlParameters();
var MEETINGID = params.meetingId;
var HOST = window.location.host;
var url = "http://" + HOST + "/presentation/" + MEETINGID;
var url = "/presentation/" + MEETINGID;
var shapes_svg = url + '/shapes.svg';
var events_xml = url + '/panzooms.xml';
var cursor_xml = url + '/cursor.xml';
Expand Down
Expand Up @@ -477,8 +477,7 @@ var cursorStyle;

var params = getUrlParameters();
var MEETINGID = params.meetingId;
var HOST = window.location.host;
var url = "http://" + HOST + "/presentation/" + MEETINGID;
var url = "/presentation/" + MEETINGID;
var shapes_svg = url + '/shapes.svg';
var events_xml = url + '/panzooms.xml';
var cursor_xml = url + '/cursor.xml';
Expand Down

0 comments on commit 39cc6a8

Please sign in to comment.