Back out "[flipper] Export init function"
Summary: This seems to break initialization. I'm not quite sure why, but inside the exported function, nothing else from the file appears to be visible. Original commit changeset: 55b2a61186e6 Reviewed By: danielbuechele Differential Revision: D9849812 fbshipit-source-id: d88973721da82040e1f29669acade6c883619ce8
This commit is contained in:
committed by
Facebook Github Bot
parent
bc3ccfce5d
commit
c93ab83bd9
28
src/init.js
28
src/init.js
@@ -62,18 +62,16 @@ const AppFrame = () => (
|
||||
</TooltipProvider>
|
||||
);
|
||||
|
||||
export default function init() {
|
||||
// $FlowFixMe: this element exists!
|
||||
ReactDOM.render(<AppFrame />, document.getElementById('root'));
|
||||
// $FlowFixMe: service workers exist!
|
||||
navigator.serviceWorker
|
||||
.register(
|
||||
process.env.NODE_ENV === 'production'
|
||||
? path.join(__dirname, 'serviceWorker.js')
|
||||
: './serviceWorker.js',
|
||||
)
|
||||
.then(r => {
|
||||
(r.installing || r.active).postMessage({precachedIcons});
|
||||
})
|
||||
.catch(console.error);
|
||||
}
|
||||
// $FlowFixMe: this element exists!
|
||||
ReactDOM.render(<AppFrame />, document.getElementById('root'));
|
||||
// $FlowFixMe: service workers exist!
|
||||
navigator.serviceWorker
|
||||
.register(
|
||||
process.env.NODE_ENV === 'production'
|
||||
? path.join(__dirname, 'serviceWorker.js')
|
||||
: './serviceWorker.js',
|
||||
)
|
||||
.then(r => {
|
||||
(r.installing || r.active).postMessage({precachedIcons});
|
||||
})
|
||||
.catch(console.error);
|
||||
|
||||
Reference in New Issue
Block a user