summaryrefslogtreecommitdiffstats
path: root/src/js/devtools.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 05:50:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 05:50:18 +0000
commit55a5d29a66503248916f249ad2a1d8b37cde5a03 (patch)
treea3beb6a90dd3bdaaf67ecb05d42152a494aff946 /src/js/devtools.js
parentAdding upstream version 1.55.0+dfsg. (diff)
downloadublock-origin-55a5d29a66503248916f249ad2a1d8b37cde5a03.tar.xz
ublock-origin-55a5d29a66503248916f249ad2a1d8b37cde5a03.zip
Adding upstream version 1.57.0+dfsg.upstream/1.57.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/js/devtools.js')
-rw-r--r--src/js/devtools.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/js/devtools.js b/src/js/devtools.js
index 93b2697..0763b0b 100644
--- a/src/js/devtools.js
+++ b/src/js/devtools.js
@@ -187,6 +187,28 @@ 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', '');
+ vAPI.messaging.send('devTools', {
+ what: 'cfeBenchmark',
+ }).then(result => {
+ log(result);
+ 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', '');
+ vAPI.messaging.send('devTools', {
+ what: 'sfeBenchmark',
+ }).then(result => {
+ log(result);
+ dom.attr(button, 'disabled', null);
+ });
+ });
});
/******************************************************************************/