From 5eeaf4c2b55398f2c113ded113d33ddb18672d81 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 28 Oct 2019 00:38:34 -0400 Subject: [PATCH] Allow app to be run locally without github token --- app/views/api.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/views/api.js b/app/views/api.js index dc748f5..b0fa70a 100644 --- a/app/views/api.js +++ b/app/views/api.js @@ -20,9 +20,6 @@ const filePathBlockchain = "/contrib/devtools/generated/api_v1.json"; const filePathSdk = "/lbry/docs/api.json"; const rawGitHubBase = "https://raw.githubusercontent.com/lbryio/"; -if (!process.env.GITHUB_OAUTH_TOKEN) // No point in rendering this page - throw new Error("Missing GitHub token"); - const octokit = new Octokit({ auth: `token ${process.env.GITHUB_OAUTH_TOKEN}` }); -- 2.45.2