@@ -24,7 +24,6 @@ import { debounceTime } from 'rxjs/operators';
2424import moment from 'moment' ;
2525import dateMath from '@elastic/datemath' ;
2626import { i18n } from '@kbn/i18n' ;
27- import { createHashHistory } from 'history' ;
2827import { getState , splitState } from './discover_state' ;
2928
3029import { RequestAdapter } from '../../../../../../../plugins/inspector/public' ;
@@ -59,6 +58,7 @@ const {
5958 chrome,
6059 data,
6160 docTitle,
61+ history,
6262 indexPatterns,
6363 filterManager,
6464 share,
@@ -88,8 +88,6 @@ const fetchStatuses = {
8888
8989const app = getAngularModule ( ) ;
9090
91- app . factory ( 'history' , ( ) => createHashHistory ( ) ) ;
92-
9391app . config ( $routeProvider => {
9492 const defaults = {
9593 requireDefaultIndex : true ,
@@ -117,7 +115,7 @@ app.config($routeProvider => {
117115 template : indexTemplate ,
118116 reloadOnSearch : false ,
119117 resolve : {
120- savedObjects : function ( $route , kbnUrl , Promise , $rootScope , history ) {
118+ savedObjects : function ( $route , kbnUrl , Promise , $rootScope ) {
121119 const savedSearchId = $route . current . params . id ;
122120 return ensureDefaultIndexPattern ( core , data , $rootScope , kbnUrl ) . then ( ( ) => {
123121 const { appStateContainer } = getState ( { history } ) ;
@@ -189,8 +187,7 @@ function discoverController(
189187 config ,
190188 kbnUrl ,
191189 localStorage ,
192- uiCapabilities ,
193- history
190+ uiCapabilities
194191) {
195192 const { isDefault : isDefaultType } = indexPatternsUtils ;
196193 const subscriptions = new Subscription ( ) ;
0 commit comments