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
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CoreHome/javascripts/dataTable.js')
-rw-r--r--plugins/CoreHome/javascripts/dataTable.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js
index e364251f9b..763674585d 100644
--- a/plugins/CoreHome/javascripts/dataTable.js
+++ b/plugins/CoreHome/javascripts/dataTable.js
@@ -509,7 +509,10 @@ $.extend(DataTable.prototype, UIControl.prototype, {
setMaxTableWidthIfNeeded(domElem, 1200);
- var isTableVisualization = this.jsViewDataTable && this.jsViewDataTable.indexOf('table') !== -1;
+ var isTableVisualization = this.jsViewDataTable
+ && typeof this.jsViewDataTable === 'string'
+ && typeof this.jsViewDataTable.indexOf === 'function'
+ && this.jsViewDataTable.indexOf('table') !== -1;
if (isTableVisualization) {
// we do this only for html tables