Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 2.41 KB

FAQ.md

File metadata and controls

44 lines (25 loc) · 2.41 KB

FAQ

I remixed this site... how do I log in?

There's a peculiarity around Oauth logins, since the providers expect the site to have a different domain than what your remix has. To log in to your new remixed site:

  1. In a new browser tab, visit Glitch.com and log in if you aren't already.

  2. Open up your browser's Developer Tools and run this command in the console: window.localStorage.cachedUser. Highlight and copy the big JSON blob that it prints out.

  3. Now, back in your remixed community site, click on the 'show' button to view your running app. Open the developer tools again and this time type in

window.localStorage.cachedUser = `[Paste Here]`

replacing the [Paste Here] with your copied JSON blob from the other tab. Hit enter, refresh the page, and you're logged in!

Depending on what browser you're using, there might be a finnicky spacing issue that's preventing the JSON from coming through cleanly. If that's the case, it can be helpful to copy just the inner JSON object, and then load the object into the page using

window.localStorage.cachedUser = JSON.stringify(`[Paste JSON Here]`)

What is Raven.js and how do I get my real line numbers back?

We use Raven.js to capture our exceptions and log messages to help us spot bugs in the wild.

Because it's a wrapper, you might lose access to the line numbers you were looking for in your js console. Raven may one day fix this, but in the meantime you can fix it with BlackBoxing

In Chrome, open up the developer tools, go to the Sources tab, click the kebab menu in the corner, and click Settings:

Now select 'BlackBoxing' on the left, and blackbox raven.js:

Now, in your devtools, it'll be just like Raven.js doesn't exist -- line numbers and exceptions will flow straight through, but it'll stay functional behind the scenes.

How do I add a question to the FAQ?

I'd suggest remixing the site and adding the question. Feel free to take a stab at the answer, if you like. See CONTRIBUTING.md for how to contribute :-)