18 lines
744 B
JavaScript
18 lines
744 B
JavaScript
import $ from 'jquery';
|
|
import UsernameValidator from './username_validator';
|
|
import SigninTabsMemoizer from './signin_tabs_memoizer';
|
|
import OAuthRememberMe from './oauth_remember_me';
|
|
import preserveUrlFragment from './preserve_url_fragment';
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
new UsernameValidator(); // eslint-disable-line no-new
|
|
new SigninTabsMemoizer(); // eslint-disable-line no-new
|
|
|
|
new OAuthRememberMe({
|
|
container: $('.omniauth-container'),
|
|
}).bindEvents();
|
|
|
|
// Save the URL fragment from the current window location. This will be present if the user was
|
|
// redirected to sign-in after attempting to access a protected URL that included a fragment.
|
|
preserveUrlFragment(window.location.hash);
|
|
});
|