From 3d9d6397f62f116407fdae29224cc6a7324c6a86 Mon Sep 17 00:00:00 2001 From: willyb321 Date: Sat, 28 Jul 2018 07:09:16 +1000 Subject: [PATCH] fix url shortener --- src/app/utils/ShortenUrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/utils/ShortenUrl.js b/src/app/utils/ShortenUrl.js index 71f3dfc4..c7e413d4 100644 --- a/src/app/utils/ShortenUrl.js +++ b/src/app/utils/ShortenUrl.js @@ -8,7 +8,7 @@ import request from 'superagent'; * @param {function} error Failure/Error callback */ export default function shorternUrl(url, success, error) { - orbisUpload(url, success, error); + orbisShorten(url, success, error); } const SHORTEN_API_GOOGLE = 'https://www.googleapis.com/urlshortener/v1/url?key='; @@ -72,7 +72,7 @@ const SHORTEN_API_ORBIS = 'https://s.orbis.zone/a'; * @param {function} success Success callback * @param {function} error Failure/Error callback */ -function orbisUpload(url, success, error) { +function orbisShorten(url, success, error) { if (window.navigator.onLine) { try { request.post(SHORTEN_API_ORBIS)