mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix offline-plugin warning in dev mode (#5411)
This commit is contained in:
parent
d5b767c374
commit
981e20b03a
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
import * as OfflinePluginRuntime from 'offline-plugin/runtime';
|
|
||||||
import * as WebPushSubscription from './web_push_subscription';
|
import * as WebPushSubscription from './web_push_subscription';
|
||||||
import Mastodon from 'mastodon/containers/mastodon';
|
import Mastodon from 'mastodon/containers/mastodon';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
@ -25,7 +24,7 @@ function main() {
|
||||||
ReactDOM.render(<Mastodon {...props} />, mountNode);
|
ReactDOM.render(<Mastodon {...props} />, mountNode);
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
// avoid offline in dev mode because it's harder to debug
|
// avoid offline in dev mode because it's harder to debug
|
||||||
OfflinePluginRuntime.install();
|
require('offline-plugin/runtime').install();
|
||||||
WebPushSubscription.register();
|
WebPushSubscription.register();
|
||||||
}
|
}
|
||||||
perf.stop('main()');
|
perf.stop('main()');
|
||||||
|
|
Loading…
Reference in a new issue