mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -31,9 +31,10 @@ export class HistoryWrapper implements LocationService {
|
||||
constructor(history?: H.History) {
|
||||
// If no history passed create an in memory one if being called from test
|
||||
this.history =
|
||||
history || process.env.NODE_ENV === 'test'
|
||||
history ||
|
||||
(process.env.NODE_ENV === 'test'
|
||||
? H.createMemoryHistory({ initialEntries: ['/'] })
|
||||
: H.createBrowserHistory({ basename: config.appSubUrl ?? '/' });
|
||||
: H.createBrowserHistory({ basename: config.appSubUrl ?? '/' }));
|
||||
|
||||
this.partial = this.partial.bind(this);
|
||||
this.push = this.push.bind(this);
|
||||
|
||||
Reference in New Issue
Block a user