From babf01068b1e527698e477fd817301b3608feec0 Mon Sep 17 00:00:00 2001 From: Andrew Weiss Date: Fri, 28 Jul 2017 15:51:31 +0200 Subject: [PATCH] add an explicit semicolon between snippet and custom js --- src/RollbarJsHelper.php | 2 +- tests/RollbarJsHelperTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/RollbarJsHelper.php b/src/RollbarJsHelper.php index 12bc7099..2907c9df 100644 --- a/src/RollbarJsHelper.php +++ b/src/RollbarJsHelper.php @@ -50,7 +50,7 @@ public static function buildJs( public function addJs($headers = null, $nonce = null, $customJs = "") { return $this->scriptTag( - $this->configJsTag() .$this->jsSnippet() . $customJs, + $this->configJsTag() . $this->jsSnippet() . ";" . $customJs, $headers, $nonce ); diff --git a/tests/RollbarJsHelperTest.php b/tests/RollbarJsHelperTest.php index e64149b9..d7e6cffd 100644 --- a/tests/RollbarJsHelperTest.php +++ b/tests/RollbarJsHelperTest.php @@ -283,7 +283,7 @@ public function addJsProvider() null, // 'nonce' "\n" ), @@ -295,7 +295,7 @@ public function addJsProvider() null, "\n" ), @@ -307,7 +307,7 @@ public function addJsProvider() 'stub-nonce', "\n" ),