overleaf/services/web/public/coffee/base.coffee

33 lines
729 B
CoffeeScript
Raw Normal View History

2014-06-17 07:43:42 -04:00
define [
2014-07-08 07:02:26 -04:00
"libs"
2014-06-21 17:20:37 -04:00
"modules/recursionHelper"
"modules/errorCatcher"
"modules/localStorage"
"utils/underscore"
2014-06-17 07:43:42 -04:00
], () ->
App = angular.module("SharelatexApp", [
"ui.bootstrap"
"autocomplete"
2014-06-21 17:20:37 -04:00
"RecursionHelper"
2014-06-23 12:25:45 -04:00
"ng-context-menu"
"underscore"
"ngSanitize"
2014-08-13 11:04:23 -04:00
"ipCookie"
2015-10-27 06:58:27 -04:00
"mvdSixpack"
"ErrorCatcher"
"localStorage"
"ngTagsInput"
]).config ($qProvider, sixpackProvider, $httpProvider)->
2017-07-03 06:19:13 -04:00
$qProvider.errorOnUnhandledRejections(false)
2015-10-27 06:58:27 -04:00
sixpackProvider.setOptions({
2015-10-27 07:20:54 -04:00
debug: false
2015-10-27 06:58:27 -04:00
baseUrl: window.sharelatex.sixpackDomain
client_id: window.user_id
2015-10-27 06:58:27 -04:00
})
sl_debugging = window.location?.search?.match(/debug=true/)?
window.sl_console =
log: (args...) -> console.log(args...) if sl_debugging
2014-06-17 07:43:42 -04:00
2014-11-25 11:00:21 -05:00
return App