mirror of https://github.com/vector-im/riot-web
Fix passing variable down to evaluate context
parent
19cae42161
commit
9f8d04ab9a
|
@ -28,13 +28,13 @@ module.exports.delay = function(ms) {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.measureStart = function(session, name) {
|
module.exports.measureStart = function(session, name) {
|
||||||
return session.page.evaluate(() => {
|
return session.page.evaluate(_name => {
|
||||||
window.mxPerformanceMonitor.start(name);
|
window.mxPerformanceMonitor.start(_name);
|
||||||
});
|
}, name);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.measureStop = function(session, name) {
|
module.exports.measureStop = function(session, name) {
|
||||||
return session.page.evaluate(() => {
|
return session.page.evaluate(_name => {
|
||||||
window.mxPerformanceMonitor.stop(name);
|
window.mxPerformanceMonitor.stop(_name);
|
||||||
});
|
}, name);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue