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) {