Dev: Network always refresh when shown

This commit is contained in:
surunzi
2016-05-10 16:49:39 +08:00
parent 15baa47261
commit 97ab447401

View File

@@ -13,18 +13,11 @@ export default class Network extends Tool
this._tpl = require('./Network.hbs');
}
init($el)
show()
{
super.init($el);
super.show();
window.addEventListener('load', () =>
{
// SetTimeout is required to make sure timing data is initialized.
setTimeout(() =>
{
this._getPerformanceTimingData()
}, 1000);
}, false);
this._getPerformanceTimingData();
}
_getPerformanceTimingData()
{