1234567891011121314151617181920212223242526272829303132 |
- import {initThemeVariation} from './wowchemy-theming';
- import {wcDarkLightEnabled, wcIsSiteThemeDark} from '@params';
- window.wc = {
- darkLightEnabled: wcDarkLightEnabled,
- isSiteThemeDark: wcIsSiteThemeDark,
- };
- if (window.netlifyIdentity) {
- window.netlifyIdentity.on('init', (user) => {
- if (!user) {
- window.netlifyIdentity.on('login', () => {
- document.location.href = '/admin/';
- });
- }
- });
- }
- initThemeVariation();
- window.PlotlyConfig = {MathJaxConfig: 'local'};
|