Open Verley93 opened 5 years ago
@Verley93 thanks for your report!
How does the file you are editing look like?
const clientID = ''; const redirectURI = 'http://localhost:3000/';
let accessToken;
const Spotify = { // Check to see if accessToken is already set, or set it w/expiresIn otherwise getAccessToken() { if(accessToken) { return accessToken; }
// Check URL if Access Token and expiresIn are set
const matchAccessToken =
window.location.href.match(/access_token=([^&])/); const matchexpiresIn = window.location.href.match(/expires_in=([^&])/);
if (matchAcessToken && matchexpiresIn) {
accessToken = matchAccessToken[1];
const expiresIn = Number(matchexpiresIn[1]);
// Set timeout; Wipe accessToken at expiresIn
window.setTimeout(() => accessToken = '', expiresIn * 1000);
// Clear parameters from URL to prevent the app from grabbing
accessToken after expiresIn window.history.pushState('Access Token', null, '/'); } } }
export default Spotify;
Devlin Verley II verle006@umn.edu
College of Continuing and Professional Studies Bachelor of Applied Science, Manufacturing Operations Management University of Minnesota-Twin Cities
On Wed, Aug 29, 2018 at 12:31 AM TC Liu notifications@github.com wrote:
@Verley93 https://github.com/Verley93 thanks for your report!
How does the file you are editing look like?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/liuderchi/ide-html/issues/33#issuecomment-416829309, or mute the thread https://github.com/notifications/unsubscribe-auth/AbwncdQiMBmi_h7ISx2fLL-wed6ZDUqHks5uVichgaJpZM4WPimh .
[Enter steps to reproduce:]
Atom: 1.29.0 x64 Electron: 2.0.5 OS: Microsoft Windows 10 Pro Thrown From: ide-html package 0.4.2
Stack Trace
Uncaught Error: Message header must separate key and value using :
Commands
Non-Core Packages