main.js 1.2 KB

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