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" "ui.select" ]).config ($qProvider, sixpackProvider, $httpProvider, uiSelectConfig) -> $qProvider.errorOnUnhandledRejections(false) uiSelectConfig.spinnerClass = 'fa fa-refresh ui-select-spin' sixpackProvider.setOptions({ debug: false baseUrl: window.sharelatex.sixpackDomain client_id: window.user_id }) App.run ($templateCache) -> $templateCache.put "bootstrap/match.tpl.html", "
" sl_debugging = window.location?.search?.match(/debug=true/)? window.sl_console = log: (args...) -> console.log(args...) if sl_debugging return App