Use project token when it's available
Tokens are not being enforced yet.
This commit is contained in:
1 parent
1764191584
commit
ff863d4ec7
1 file changed
+1
-2
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user