From 5fe6282bfc5f96319d257aff9da7444b52a456e3 Mon Sep 17 00:00:00 2001
From: Florrie <towerofnix@gmail.com>
Date: Sat, 21 Dec 2019 13:45:01 -0400
Subject: use assets cdn for better reliability

---
 src/js/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/js/main.js b/src/js/main.js
index 20a1852..11717dc 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -15,7 +15,7 @@ const errorElement = document.getElementById('error-element');
 const downloadIndicator = document.getElementById('download-indicator');
 
 function assetURL({md5, ext}) {
-    return 'https://assets.scratch.mit.edu/' + md5 + '.' + ext;
+    return `https://cdn.assets.scratch.mit.edu/internalapi/asset/${md5}.${ext}/get/`;
 }
 
 function isUrlInputValid() {
-- 
cgit 1.3.0-6-gf8a5