Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-14 21:15:26 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-06-14 21:15:26 +0400
commit5ec70a755fc2c4211678f37347298978a1677418 (patch)
tree7d1d24c7730db0ff2158bfbbad0343bd2293997d /js
parentb376fb947e5beeac6674676ab693600d4f0f99f0 (diff)
Replace outer try..catch with lighter (and shorter) if..then.
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/piwik.js b/js/piwik.js
index ecdd25c78c..d5533912d4 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -22,9 +22,7 @@
// Guard against loading the script twice
var Piwik;
-try {
- if (Piwik.getTracker) { }
-} catch (e) {
+if (!this.Piwik) {
// Piwik singleton and namespace
Piwik = (function () {
/************************************************************