mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
This commit is contained in:
parent
a81ec4f9af
commit
4f652d8110
2 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,9 @@ export default function (kibana) {
|
||||||
id: 'interpreter',
|
id: 'interpreter',
|
||||||
require: ['kibana', 'elasticsearch'],
|
require: ['kibana', 'elasticsearch'],
|
||||||
publicDir: resolve(__dirname, 'public'),
|
publicDir: resolve(__dirname, 'public'),
|
||||||
|
uiExports: {
|
||||||
|
injectDefaultVars: server => ({ serverBasePath: server.config().get('server.basePath') }),
|
||||||
|
},
|
||||||
init,
|
init,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ import chrome from 'ui/chrome';
|
||||||
import { functionsRegistry } from './functions_registry';
|
import { functionsRegistry } from './functions_registry';
|
||||||
import { typesRegistry } from './types_registry';
|
import { typesRegistry } from './types_registry';
|
||||||
|
|
||||||
const basePath = chrome.getBasePath();
|
const basePath = chrome.getInjected('serverBasePath');
|
||||||
|
|
||||||
const types = {
|
const types = {
|
||||||
browserFunctions: functionsRegistry,
|
browserFunctions: functionsRegistry,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue