Skip to content

Commit

Permalink
Fix hmr as in Graylog/graylog2-server#3591 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundoa authored and dennisoelkers committed Jun 23, 2017
1 parent f850bdb commit 8114ef6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/web/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import MaxmindAdapterFieldSet from 'components/adapter/MaxmindAdapterFieldSet';
import MaxmindAdapterSummary from 'components/adapter/MaxmindAdapterSummary';
import MaxmindAdapterDocumentation from 'components/adapter/MaxmindAdapterDocumentation';

PluginStore.register(new PluginManifest(packageJson, {
const manifest = new PluginManifest(packageJson, {
widgets: [
{
type: 'org.graylog.plugins.map.widget.strategy.MapWidgetStrategy',
Expand Down Expand Up @@ -42,5 +42,12 @@ PluginStore.register(new PluginManifest(packageJson, {
summaryComponent: MaxmindAdapterSummary,
documentationComponent: MaxmindAdapterDocumentation,
},
]
}));
],
});

PluginStore.register(manifest);

if (module.hot) {
module.hot.accept();
module.hot.dispose(() => PluginStore.unregister(manifest));
}

0 comments on commit 8114ef6

Please sign in to comment.