overleaf/services/web/frontend/js/main.js
Alf Eaton 98cefaa5bd Remove "upgrade to annual" page (#18014)
GitOrigin-RevId: b9f92ad038adab7fc7eb5e2a7175461bfefee379
2024-04-24 08:04:04 +00:00

33 lines
1.1 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/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
import './features/cookie-banner'
import '../../modules/modules-main'
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'])