diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-10-11 06:36:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 06:36:30 +0300 |
commit | cb717535f16686a1e7202a6377dc9273bab35ab1 (patch) | |
tree | e8283e642de185118d0ee6674bcc40b2f3df0fc4 /plugins/CoreHome/javascripts | |
parent | 94c4db44b96e9ca9bc01a4c610183d9ce1537695 (diff) |
[Vue] migrate piwik service and test (#18106)
Diffstat (limited to 'plugins/CoreHome/javascripts')
-rw-r--r-- | plugins/CoreHome/javascripts/broadcast.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index 7fc0b848d5..863b6c560e 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -331,7 +331,7 @@ var broadcast = { // available in global scope var currentSearchStr = $window.location.search; var currentHashStr = broadcast.getHashFromUrl(); - + if (!currentSearchStr) { currentSearchStr = '?'; } @@ -846,3 +846,5 @@ var broadcast = { return searchString; } }; + +window.broadcast = broadcast; // hack to get broadcast to work in vue (jest) tests |