main.js 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 './main/subscription/team-invite-controller' // used in subscriptions/team/invite
  15. import './directives/eventTracking' // used in lots of places
  16. import './features/cookie-banner'
  17. import '../../modules/modules-main'
  18. import { debugConsole } from '@/utils/debugging'
  19. angular.module('OverleafApp').config([
  20. '$locationProvider',
  21. function ($locationProvider) {
  22. try {
  23. return $locationProvider.html5Mode({
  24. enabled: true,
  25. requireBase: false,
  26. rewriteLinks: false,
  27. })
  28. } catch (e) {
  29. debugConsole.error("Error while trying to fix '#' links: ", e)
  30. }
  31. },
  32. ])
  33. export default angular.bootstrap(document.body, ['OverleafApp'])