main.js 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* eslint-disable
  2. max-len,
  3. */
  4. // TODO: This file was created by bulk-decaffeinate.
  5. // Fix any style issues and re-enable lint.
  6. /*
  7. * decaffeinate suggestions:
  8. * DS102: Remove unnecessary code created because of implicit returns
  9. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  10. */
  11. import './main/token-access' // used in project/token/access
  12. import './main/event' // used in various controllers
  13. import './main/system-messages' // used in project/editor
  14. import './directives/eventTracking' // used in lots of places
  15. import './features/cookie-banner'
  16. import '../../modules/modules-main'
  17. import { debugConsole } from '@/utils/debugging'
  18. angular.module('OverleafApp').config([
  19. '$locationProvider',
  20. function ($locationProvider) {
  21. try {
  22. return $locationProvider.html5Mode({
  23. enabled: true,
  24. requireBase: false,
  25. rewriteLinks: false,
  26. })
  27. } catch (e) {
  28. debugConsole.error("Error while trying to fix '#' links: ", e)
  29. }
  30. },
  31. ])
  32. export default angular.bootstrap(document.body, ['OverleafApp'])