diff --git a/handlers/WebHandler.php b/handlers/WebHandler.php index 46db904..f5e869a 100644 --- a/handlers/WebHandler.php +++ b/handlers/WebHandler.php @@ -16,21 +16,13 @@ public function bootstrap($app) Application::EVENT_BEFORE_ACTION, function () use ($app, &$agent) { $app->controller->view->registerJs( - preg_replace( - '##', - '', - $this->getAgent()->getBrowserTimingHeader() - ), + $this->getAgent()->getBrowserTimingHeader(false), View::POS_HEAD, 'newrelic-head' ); $app->controller->view->registerJs( - preg_replace( - '##', - '', - $this->getAgent()->getBrowserTimingFooter() - ), + $this->getAgent()->getBrowserTimingFooter(false), View::POS_END, 'newrelic-end' );