File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function getCategories() {
73
73
function getSketchesInCategories ( categories ) {
74
74
return Q . all ( categories . map ( ( category ) => {
75
75
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 } ` ,
77
77
method : 'GET' ,
78
78
headers,
79
79
json : true
@@ -107,7 +107,7 @@ function getSketchesInCategories(categories) {
107
107
function getSketchContent ( projectsInAllCategories ) {
108
108
return Q . all ( projectsInAllCategories . map ( projectsInOneCategory => Q . all ( projectsInOneCategory . map ( ( project ) => {
109
109
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 } ` ,
111
111
method : 'GET' ,
112
112
headers
113
113
} ;
@@ -264,7 +264,7 @@ function createProjectsInP5user(projectsInAllCategories) {
264
264
const fileID = objectID ( ) . toHexString ( ) ;
265
265
newProject . files . push ( {
266
266
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 } ` ,
268
268
id : fileID ,
269
269
_id : fileID ,
270
270
children : [ ] ,
You can’t perform that action at this time.
0 commit comments