From e96595896c8b33df9756acfb18f4b572696185e2 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Wed, 27 Jul 2011 13:35:22 +0100 Subject: Fixed wordle export under https --- static/js/pad_impexp.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/js/pad_impexp.js b/static/js/pad_impexp.js index e5dee7af..8e4b269d 100644 --- a/static/js/pad_impexp.js +++ b/static/js/pad_impexp.js @@ -289,9 +289,7 @@ var padimpexp = (function() }, export2Wordle: function() { - padUrl = location.pathname; - padHost = location.host; - var padUrl = "http://" + padHost + padUrl + "/export/txt"; + var padUrl = document.location.href + "/export/txt"; $.get(padUrl, function(data) { -- cgit v1.2.3