From 976f91eb10590ec08f05ccc05372fba76d2fc0c7 Mon Sep 17 00:00:00 2001 From: Drew Harwell Date: Sun, 30 Apr 2017 13:25:03 -0500 Subject: [PATCH] Update index.html --- static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 20b7d57..963ff12 100644 --- a/static/index.html +++ b/static/index.html @@ -19,7 +19,7 @@ function genUrl(){ return document.getElementById(id).value; } - var inUrl = 'http://' + val('urlin') + '/users/'+val('usernamein')+'.atom'; + var inUrl = window.location.protocol + '//' + val('urlin') + '/users/'+val('usernamein')+'.atom'; var iframeUrl = 'http://'+ window.location.hostname +((window.location.port && window.location.port!=80)?(':'+window.location.port):'') +"/api/feed?url="+encodeURIComponent(inUrl); @@ -31,4 +31,4 @@ function genUrl(){ iframe.height = val('height'); } - \ No newline at end of file +