Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function boot() {
let i18nLocaleStringsObject = null;
bootDebug( 'Starting Calypso Support' );
i18n.setLocale( window.i18nLocaleStrings );
ReactInjection.Class.injectMixin( i18n.mixin );
// Infer touch screen by checking if device supports touch events
if ( touchDetect.hasTouch() ) {
classes( document.documentElement ).add( 'touch' );
} else {
classes( document.documentElement ).add( 'notouch' );
}
// Initialize touch
injectTapEventPlugin();
}