Skip to content
Snippets Groups Projects
Commit 981e20b0 authored by Nolan Lawson's avatar Nolan Lawson Committed by Eugen Rochko
Browse files

Fix offline-plugin warning in dev mode (#5411)

parent d5b767c3
No related branches found
No related tags found
No related merge requests found
import * as OfflinePluginRuntime from 'offline-plugin/runtime';
import * as WebPushSubscription from './web_push_subscription';
import Mastodon from 'mastodon/containers/mastodon';
import React from 'react';
......@@ -25,7 +24,7 @@ function main() {
ReactDOM.render(<Mastodon {...props} />, mountNode);
if (process.env.NODE_ENV === 'production') {
// avoid offline in dev mode because it's harder to debug
OfflinePluginRuntime.install();
require('offline-plugin/runtime').install();
WebPushSubscription.register();
}
perf.stop('main()');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment