update examples.js to strip the proper ref name.
This commit is contained in:
parent
e5554cbc60
commit
d17feadd61
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ function getCategories() {
|
|||
function getSketchesInCategories(categories) {
|
||||
return Q.all(categories.map((category) => {
|
||||
const options = {
|
||||
url: `${category.url.replace('?ref=master', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
|
||||
url: `${category.url.replace('?ref=main', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
|
||||
method: 'GET',
|
||||
headers,
|
||||
json: true
|
||||
|
@ -107,7 +107,7 @@ function getSketchesInCategories(categories) {
|
|||
function getSketchContent(projectsInAllCategories) {
|
||||
return Q.all(projectsInAllCategories.map(projectsInOneCategory => Q.all(projectsInOneCategory.map((project) => {
|
||||
const options = {
|
||||
url: `${project.sketchUrl.replace('?ref=master', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
|
||||
url: `${project.sketchUrl.replace('?ref=main', '')}?client_id=${clientId}&client_secret=${clientSecret}`,
|
||||
method: 'GET',
|
||||
headers
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue