Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// services
import preventDefault from '@cycjimmy/awesome-js-funcs/event/preventDefault';
// polyfill
import './polyfill';
// offline runtime
if (!DEVELOPMENT) {
const OfflinePluginRuntime = require('offline-plugin/runtime');
OfflinePluginRuntime.install();
}
if (DEVELOPMENT) {
console.log('Development Mode');
console.log(require('@cycjimmy/awesome-js-funcs/handheld').getBrowserInfo());
}
if (PRODUCTION) {
console.log('Production Mode');
}
// contextMenu preventDefault
document.addEventListener('contextmenu', preventDefault);
// fix ios native scrolling
document.body.addEventListener('touchmove', preventDefault, {passive: false});
// component
import LoadingComponent from './loadingComponent/Loading.component';
import PromptMobileComponentIns from './share/promptMobile/PromptMobile.component.ins';