logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 981e20b03a67ecc01826ef32c5fc9fd28ed2917b
parent: d5b767c3747b9e7f9afcbcecffb662843ca2a346
Author: Nolan Lawson <nolan@nolanlawson.com>
Date:   Mon, 16 Oct 2017 00:33:50 -0700

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


Diffstat:

Mapp/javascript/mastodon/main.js3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/javascript/mastodon/main.js b/app/javascript/mastodon/main.js @@ -1,4 +1,3 @@ -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()');