mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-17 12:24:31 +00:00
Attach ReactPerf to window for easier debugging (#3318)
This commit is contained in:
parent
b89ab7e69d
commit
a6ba004bf5
|
@ -13,7 +13,9 @@ if (process.env.NODE_ENV === 'development') {
|
||||||
performance.setResourceTimingBufferSize(Infinity);
|
performance.setResourceTimingBufferSize(Infinity);
|
||||||
}
|
}
|
||||||
marky = require('marky');
|
marky = require('marky');
|
||||||
require('react-addons-perf').start();
|
// allows us to easily do e.g. ReactPerf.printWasted() while debugging
|
||||||
|
window.ReactPerf = require('react-addons-perf');
|
||||||
|
window.ReactPerf.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function start(name) {
|
export function start(name) {
|
||||||
|
|
Loading…
Reference in a new issue