File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function getCategories() {
7373function getSketchesInCategories ( categories ) {
7474 return Q . all ( categories . map ( ( category ) => {
7575 const options = {
76- url : `${ category . url . replace ( '?ref=master ' , '' ) } ?client_id=${ clientId } &client_secret=${ clientSecret } ` ,
76+ url : `${ category . url . replace ( '?ref=main ' , '' ) } ?client_id=${ clientId } &client_secret=${ clientSecret } ` ,
7777 method : 'GET' ,
7878 headers,
7979 json : true
@@ -107,7 +107,7 @@ function getSketchesInCategories(categories) {
107107function getSketchContent ( projectsInAllCategories ) {
108108 return Q . all ( projectsInAllCategories . map ( projectsInOneCategory => Q . all ( projectsInOneCategory . map ( ( project ) => {
109109 const options = {
110- url : `${ project . sketchUrl . replace ( '?ref=master ' , '' ) } ?client_id=${ clientId } &client_secret=${ clientSecret } ` ,
110+ url : `${ project . sketchUrl . replace ( '?ref=main ' , '' ) } ?client_id=${ clientId } &client_secret=${ clientSecret } ` ,
111111 method : 'GET' ,
112112 headers
113113 } ;
@@ -264,7 +264,7 @@ function createProjectsInP5user(projectsInAllCategories) {
264264 const fileID = objectID ( ) . toHexString ( ) ;
265265 newProject . files . push ( {
266266 name : assetName ,
267- url : `https://cdn.jsdelivr.net/gh/processing/p5.js-website@master /src/data/examples/assets/${ assetName } ` ,
267+ url : `https://cdn.jsdelivr.net/gh/processing/p5.js-website@main /src/data/examples/assets/${ assetName } ` ,
268268 id : fileID ,
269269 _id : fileID ,
270270 children : [ ] ,
You can’t perform that action at this time.
0 commit comments