From e314461da79b8be42c7c8e95507f014871965c80 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 26 Nov 2015 23:56:39 -0500 Subject: [PATCH] restore changes --- dashboard-ui/scripts/registrationservices.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/registrationservices.js b/dashboard-ui/scripts/registrationservices.js index 836404a138..3b33e0b87a 100644 --- a/dashboard-ui/scripts/registrationservices.js +++ b/dashboard-ui/scripts/registrationservices.js @@ -224,7 +224,12 @@ var url = "http://mb3admin.com/admin/service/user/getPayPalEmail?id=" + pkg.owner; - $.getJSON(url).done(function (dev) { + fetch(url, { mode: 'no-cors' }).then(function (response) { + + return response.json(); + + }).then(function (dev) { + if (dev.payPalEmail) { $('#payPalEmail', page).val(dev.payPalEmail); @@ -276,4 +281,4 @@ } }; -})(); +})(); \ No newline at end of file