From dbd3555e8893c4422f41605e69374d81d6bd832f Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Tue, 22 Jan 2019 00:53:23 +0100 Subject: [PATCH] Fix downloads page fetching from GitHub(#1684) This resolves #1624. Fixes the missing examples for newly added language in the [example page](https://prismjs.com/examples.html). --- download.js | 2 +- examples.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/download.js b/download.js index 054da79d33..c9f7696119 100644 --- a/download.js +++ b/download.js @@ -10,7 +10,7 @@ var minified = true; var dependencies = {}; -var treeURL = 'https://api.github.com/repos/PrismJS/prism/git/trees/gh-pages?recursive=1'; +var treeURL = 'https://api.github.com/repos/PrismJS/prism/git/trees/master?recursive=1'; var treePromise = new Promise(function(resolve) { $u.xhr({ url: treeURL, diff --git a/examples.js b/examples.js index ba275c5559..8006f246d9 100644 --- a/examples.js +++ b/examples.js @@ -6,7 +6,7 @@ var examples = {}; -var treeURL = 'https://api.github.com/repos/PrismJS/prism/git/trees/gh-pages?recursive=1'; +var treeURL = 'https://api.github.com/repos/PrismJS/prism/git/trees/master?recursive=1'; var treePromise = new Promise(function (resolve) { $u.xhr({ url: treeURL,