mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Replace System.import() with import() to get rid of warning
This commit is contained in:
+1
-3
@@ -29,8 +29,6 @@ _.move = (array, fromIndex, toIndex) => {
|
||||
import { coreModule, registerAngularDirectives } from './core/core';
|
||||
import { setupAngularRoutes } from './routes/routes';
|
||||
|
||||
declare var System: any;
|
||||
|
||||
export class GrafanaApp {
|
||||
registerFunctions: any;
|
||||
ngModuleDependencies: any[];
|
||||
@@ -119,7 +117,7 @@ export class GrafanaApp {
|
||||
coreModule.config(setupAngularRoutes);
|
||||
registerAngularDirectives();
|
||||
|
||||
const preBootRequires = [System.import('app/features/all')];
|
||||
const preBootRequires = [import('app/features/all')];
|
||||
|
||||
Promise.all(preBootRequires)
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user