mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
490c56c692
don't use hash in non minjs version
32 lines
734 B
CoffeeScript
32 lines
734 B
CoffeeScript
define [
|
|
"libraries"
|
|
"modules/recursionHelper"
|
|
"modules/errorCatcher"
|
|
"modules/localStorage"
|
|
"utils/underscore"
|
|
], () ->
|
|
App = angular.module("SharelatexApp", [
|
|
"ui.bootstrap"
|
|
"autocomplete"
|
|
"RecursionHelper"
|
|
"ng-context-menu"
|
|
"underscore"
|
|
"ngSanitize"
|
|
"ipCookie"
|
|
"mvdSixpack"
|
|
"ErrorCatcher"
|
|
"localStorage"
|
|
"ngTagsInput"
|
|
]).config ($qProvider, sixpackProvider, $httpProvider)->
|
|
$qProvider.errorOnUnhandledRejections(false)
|
|
sixpackProvider.setOptions({
|
|
debug: false
|
|
baseUrl: window.sharelatex.sixpackDomain
|
|
client_id: window.user_id
|
|
})
|
|
|
|
sl_debugging = window.location?.search?.match(/debug=true/)?
|
|
window.sl_console =
|
|
log: (args...) -> console.log(args...) if sl_debugging
|
|
|
|
return App
|