Fix origin check for hosts with non 80 port

openid
Marcin Kulik 11 years ago
parent 8c9b580367
commit f689595446

@ -2,7 +2,7 @@
(function() {
function receiveSize(e) {
if (e.origin === document.location.protocol + "//<%= request.host %>") {
if (e.origin === document.location.protocol + "//<%= request.host_with_port %>") {
var event = e.data[0];
var data = e.data[1];
if (event == 'asciicast:size' && data.id == <%= @asciicast.id %>) {

Loading…
Cancel
Save