From dd6e5fbbb759a37262dff252ec20013f25c19546 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 21 May 2014 10:01:28 +0200 Subject: Enable profiling iff URL contains "profile" --- bubble.js | 4 ++-- 1 file 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') -- cgit v1.2.1