From 22774feb8f1d184436092e2cfe1d30e3e8179f1f Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 22 May 2012 13:40:17 +0200 Subject: [PATCH] Changed short url provider --- zerobin/static/js/behavior.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index 6cac288..03e654c 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -177,9 +177,9 @@ window.zerobin = { /** Get a tinyurl using JSONP */ getTinyURL: function(longURL, success) { - var api = 'http://json-tinyurl.appspot.com/?url='; + var api = 'http://is.gd/create.php?format=json&url='; $.getJSON(api + encodeURIComponent(longURL) + '&callback=?', function(data){ - success(data.tinyurl); + success(data.shorturl); }); },