mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 21:33:54 +00:00
63520c7076
[misc] ShareLaTeX cleanup - high impact GitOrigin-RevId: 6dcce9b0f15e30f7afcf6d69c3df36a369f38120
36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
/* eslint-disable
|
|
max-len,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
/*
|
|
* decaffeinate suggestions:
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
*/
|
|
import './main/token-access' // used in project/token/access
|
|
import './main/event' // used in various controllers
|
|
import './main/bonus' // used in referal/bonus
|
|
import './main/system-messages' // used in project/editor
|
|
import './main/annual-upgrade' // used in subscriptions/upgradeToAnnual
|
|
import './main/subscription/team-invite-controller' // used in subscriptions/team/invite
|
|
import './directives/eventTracking' // used in lots of places
|
|
import './features/cookie-banner'
|
|
import '../../modules/modules-main'
|
|
import './cdn-load-test' // TODO: remove this?
|
|
import { debugConsole } from '@/utils/debugging'
|
|
angular.module('OverleafApp').config([
|
|
'$locationProvider',
|
|
function ($locationProvider) {
|
|
try {
|
|
return $locationProvider.html5Mode({
|
|
enabled: true,
|
|
requireBase: false,
|
|
rewriteLinks: false,
|
|
})
|
|
} catch (e) {
|
|
debugConsole.error("Error while trying to fix '#' links: ", e)
|
|
}
|
|
},
|
|
])
|
|
export default angular.bootstrap(document.body, ['OverleafApp'])
|