diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-12-08 01:04:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 01:04:37 +0300 |
commit | eedca2e2b753f46eac6dbd7a19c8ba7b4c031cb2 (patch) | |
tree | 3c936bedaefe103c9d61229d059f20564fe00540 /plugins/CoreHome/javascripts/broadcast.js | |
parent | 0d979018ce23e8e0187dd435cc8de99fcf3c3585 (diff) |
Assume something is widgetized whenever a token_auth is set in url (#16903)
Diffstat (limited to 'plugins/CoreHome/javascripts/broadcast.js')
-rw-r--r-- | plugins/CoreHome/javascripts/broadcast.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index 3faccf80a5..4b74dbb4ac 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -182,7 +182,8 @@ var broadcast = { }, isWidgetizeRequestWithoutSession: function() { - return broadcast.getValueFromUrl('module') == 'Widgetize' && broadcast.getValueFromUrl('module') == 'iframe' && broadcast.getValueFromUrl('force_api_session') != '1'; + // whenever a token_auth is set in the URL, we assume a widget or page is tried to be shown widgetized. + return broadcast.getValueFromUrl('token_auth') != '' && broadcast.getValueFromUrl('force_api_session') != '1'; }, /** |