From c5a287a204e75520a6aefa4b79cf12b1cbcea396 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Fri, 16 Nov 2018 07:48:57 -0600 Subject: [PATCH] fetchMd5 with API without options --- popup/search-results.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/popup/search-results.js b/popup/search-results.js index b89cd377..3ed5c679 100755 --- a/popup/search-results.js +++ b/popup/search-results.js @@ -551,7 +551,7 @@ window.addEventListener('showStyles:done', function _() { Promise.all([ fetchStyleJson(result), fetchStyleSettings(result), - fetchMd5(result) + API.download({url: UPDATE_URL.replace('%', result.id)}) ]) .then(([style, settings, md5]) => { pingback(result); @@ -579,19 +579,6 @@ window.addEventListener('showStyles:done', function _() { return result.style_settings; }); } - - function fetchMd5(result) { - return API.download({ - url: UPDATE_URL.replace('%', result.id), - timeout: 60e3, - // USO can't handle POST requests for style json - body: null, - }) - .catch(error => { - alert('Error' + (error ? '\n' + error : '')); - throw error; - }); - } } function pingback(result) {