diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-12-04 01:02:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 01:02:02 +0300 |
commit | d81b5cf0426b029c1ac5cdbaa084d1e7f55e5d50 (patch) | |
tree | 9666b8b841b04df900be671451aeda9e0f28d060 /plugins/CoreHome/javascripts/broadcast.js | |
parent | 0d5053c6d0f0f539d8ad460af70ce7cc86420fd0 (diff) |
Do not force api session usage for widgetized views (#16875)
Diffstat (limited to 'plugins/CoreHome/javascripts/broadcast.js')
-rw-r--r-- | plugins/CoreHome/javascripts/broadcast.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index 06517de5aa..3faccf80a5 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -181,6 +181,10 @@ var broadcast = { return broadcast.getValueFromUrl('module') == 'Widgetize' && broadcast.getValueFromUrl('moduleToWidgetize') == 'Dashboard'; }, + isWidgetizeRequestWithoutSession: function() { + return broadcast.getValueFromUrl('module') == 'Widgetize' && broadcast.getValueFromUrl('module') == 'iframe' && broadcast.getValueFromUrl('force_api_session') != '1'; + }, + /** * Returns if the current page is the login page * @return {boolean} |