Debian Codegraph @

examples/react-spa/frontend/src/init.js

raw
1 import { setup } from './lib/allauth'
2
3 export function init () {
4 if (document.location.hostname === 'app.react.demo.allauth.org') {
5 setup('app', 'https://api.react.demo.allauth.org/_allauth/app/v1', false)
6 } else if (document.location.hostname === 'react.demo.allauth.org') {
7 setup('browser', 'https://api.react.demo.allauth.org/_allauth/browser/v1', true)
8 }
9 }