1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Fix disabled state of new benchmark buttons

This commit is contained in:
Raymond Hill 2024-03-03 13:46:29 -05:00
parent 43e0e15125
commit 270040d466
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -187,6 +187,7 @@ vAPI.messaging.send('dashboard', {
dom.attr(button, 'disabled', null);
});
});
dom.attr('#cfe-benchmark', 'disabled', null);
dom.on('#cfe-benchmark', 'click', ev => {
const button = ev.target;
dom.attr(button, 'disabled', '');
@ -197,6 +198,7 @@ vAPI.messaging.send('dashboard', {
dom.attr(button, 'disabled', null);
});
});
dom.attr('#sfe-benchmark', 'disabled', null);
dom.on('#sfe-benchmark', 'click', ev => {
const button = ev.target;
dom.attr(button, 'disabled', '');