From 73530d55db5e55b72c91ebf1423bad770993f8b4 Mon Sep 17 00:00:00 2001 From: OutCast3k Date: Mon, 8 Dec 2014 11:18:38 +0000 Subject: [PATCH] bitcoin javascript framework now supports https --- js/coin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/coin.js b/js/coin.js index dfe3363..ffec3c0 100644 --- a/js/coin.js +++ b/js/coin.js @@ -19,7 +19,7 @@ coinjs.developer = '1CWHWkTWaq1K5hevimJia3cyinQsrgXUvg'; /* bit(coinb.in) api vars */ - coinjs.host = 'http://coinb.in/api/'; + coinjs.host = ('https:'==document.location.protocol?'https://':'http://')+'coinb.in/api/'; coinjs.uid = '1'; coinjs.key = '12345678901234567890123456789012';