diff options
Diffstat (limited to 'plugins/CoreHome/vue/src/Matomo/Matomo.ts')
-rw-r--r-- | plugins/CoreHome/vue/src/Matomo/Matomo.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/CoreHome/vue/src/Matomo/Matomo.ts b/plugins/CoreHome/vue/src/Matomo/Matomo.ts index e2a00bc3b1..30b821f403 100644 --- a/plugins/CoreHome/vue/src/Matomo/Matomo.ts +++ b/plugins/CoreHome/vue/src/Matomo/Matomo.ts @@ -5,7 +5,6 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ -import { IAngularEvent } from 'angular'; import Periods from '../Periods/Periods'; let originalTitle: string; @@ -61,13 +60,13 @@ piwik.postEventNoEmit = function postEventNoEmit( piwik.postEvent = function postMatomoEvent( eventName: string, ...args: any[] // eslint-disable-line -): IAngularEvent { +): void { piwik.postEventNoEmit(eventName, ...args); // required until angularjs is removed - angular.element(() => { + window.angular.element(() => { const $rootScope = piwik.helper.getAngularDependency('$rootScope') as any; // eslint-disable-line - return $rootScope.$oldEmit(eventName, ...args); + $rootScope.$oldEmit(eventName, ...args); }); }; |