Use project token when it's available

Tokens are not being enforced yet.
This commit is contained in:
Thomas Weber committed 2022-07-05 22:46:34 -05:00
1 parent 1764191584
commit ff863d4ec7
1 file changed
+1 -2
+1 -2
View File
@@ -41,8 +41,7 @@ const fromURL = async (url, progressCallback) => {
const fromID = (id, token, progressCallback) => {
const tokenPart = token ? `?token=${token}` : '';
// TODO: enable tokens when we're pretty sure nothing will break
let url = `https://projects.scratch.mit.edu/${id}`;
const url = `https://projects.scratch.mit.edu/${id}${tokenPart}`;
return fromURL(url, progressCallback);
};