2018-11-05 05:06:39 -05:00
|
|
|
/* 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
|
|
|
|
*/
|
2023-12-05 05:19:19 -05:00
|
|
|
import './main/token-access' // used in project/token/access
|
|
|
|
import './main/event' // used in various controllers
|
|
|
|
import './main/system-messages' // used in project/editor
|
|
|
|
import './main/subscription/team-invite-controller' // used in subscriptions/team/invite
|
|
|
|
import './directives/eventTracking' // used in lots of places
|
2022-03-29 08:12:10 -04:00
|
|
|
import './features/cookie-banner'
|
2023-09-28 11:32:24 -04:00
|
|
|
import '../../modules/modules-main'
|
2023-09-27 05:45:49 -04:00
|
|
|
import { debugConsole } from '@/utils/debugging'
|
2024-02-06 04:34:15 -05:00
|
|
|
angular.module('OverleafApp').config([
|
2023-10-13 05:13:49 -04:00
|
|
|
'$locationProvider',
|
|
|
|
function ($locationProvider) {
|
|
|
|
try {
|
|
|
|
return $locationProvider.html5Mode({
|
|
|
|
enabled: true,
|
|
|
|
requireBase: false,
|
|
|
|
rewriteLinks: false,
|
|
|
|
})
|
|
|
|
} catch (e) {
|
|
|
|
debugConsole.error("Error while trying to fix '#' links: ", e)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
])
|
2024-02-06 04:34:15 -05:00
|
|
|
export default angular.bootstrap(document.body, ['OverleafApp'])
|