summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bubble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bubble.js b/bubble.js
index ccc4f4a..7c10f83 100644
--- a/bubble.js
+++ b/bubble.js
@@ -339,8 +339,8 @@ function run() {
initSvg();
// Set PROFILE=1 to enable profiling when using the button.
-var ticks = 0, PROFILE = 1;
-if (/no-auto/.test(location.search)) {
+var ticks = 0, PROFILE = /\bprofile\b/.test(location.search);
+if (/\bno-auto\b/.test(location.search)) {
// advanced stuff here: profiling!
d3.select('body').append('button')
.style('position', 'absolute')