Skip to content
Snippets Groups Projects
Commit 6a1a0918 authored by Tom Robinson's avatar Tom Robinson
Browse files

uberjar client resources and npm dependency fixes

parent 79182855
No related tags found
No related merge requests found
......@@ -39,9 +39,9 @@ Corvus.config(['$routeProvider', '$locationProvider', function($routeProvider, $
template: '',
controller: 'Homepage',
resolve: {
appState: function(AppState) {
appState: ["AppState", function(AppState) {
return AppState.init();
}
}]
}
});
......@@ -68,7 +68,7 @@ Corvus.config(['$routeProvider', '$locationProvider', function($routeProvider, $
});
}]);
Corvus.run(function(AppState, editableOptions, editableThemes) {
Corvus.run(["AppState", "editableOptions", "editableThemes", function(AppState, editableOptions, editableThemes) {
// initialize app state
AppState.init();
......@@ -78,14 +78,14 @@ Corvus.run(function(AppState, editableOptions, editableThemes) {
// overwrite submit button template
editableThemes['default'].submitTpl = '<button class="Button Button--primary" type="submit">Save</button>';
editableThemes['default'].cancelTpl = '<button class="Button" ng-click="$form.$cancel()">cancel</button>';
});
}]);
if (document.location.hostname != "localhost") {
// Only set up logging in production
Corvus.config(function(AngularyticsProvider) {
Corvus.config(["AngularyticsProvider", function(AngularyticsProvider) {
AngularyticsProvider.setEventHandlers(['Console', 'GoogleUniversal']);
}).run(function(Angularytics) {
}]).run(["Angularytics", function(Angularytics) {
Angularytics.init();
});
}]);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment