mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 07:35:26 -05:00
0cf875bd0a
Enable HTML5 mode in Angular, to allow disabling link rewriting.
51 lines
1.1 KiB
CoffeeScript
51 lines
1.1 KiB
CoffeeScript
define [
|
|
"main/project-list/index"
|
|
"main/user-details"
|
|
"main/account-settings"
|
|
"main/clear-sessions"
|
|
"main/account-upgrade"
|
|
"main/plans"
|
|
"main/group-members"
|
|
"main/scribtex-popup"
|
|
"main/event"
|
|
"main/bonus"
|
|
"main/system-messages"
|
|
"main/translations"
|
|
"main/subscription-dashboard"
|
|
"main/new-subscription"
|
|
"main/annual-upgrade"
|
|
"main/announcements"
|
|
"main/register-users"
|
|
"main/subscription/group-subscription-invite-controller"
|
|
"main/contact-us"
|
|
"main/learn"
|
|
"analytics/AbTestingManager"
|
|
"directives/asyncForm"
|
|
"directives/stopPropagation"
|
|
"directives/focus"
|
|
"directives/equals"
|
|
"directives/fineUpload"
|
|
"directives/onEnter"
|
|
"directives/selectAll"
|
|
"directives/maxHeight"
|
|
"directives/creditCards"
|
|
"services/queued-http"
|
|
"services/validateCaptcha"
|
|
"filters/formatDate"
|
|
"__MAIN_CLIENTSIDE_INCLUDES__"
|
|
], () ->
|
|
angular.module('SharelatexApp').config(
|
|
($locationProvider) ->
|
|
try
|
|
$locationProvider.html5Mode({
|
|
enabled: true,
|
|
requireBase: false,
|
|
rewriteLinks: false
|
|
})
|
|
catch e
|
|
console.error "Error while trying to fix '#' links: ", e
|
|
)
|
|
angular.bootstrap(
|
|
document.body,
|
|
["SharelatexApp"]
|
|
)
|