Skip to content
Snippets Groups Projects
Commit 59db2575 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Merge branch 'master' of gitlab.tugraz.at:dbp/web-components/toolkit

parents ec438bde de109add
No related branches found
No related tags found
No related merge requests found
Pipeline #15116 failed
...@@ -92,6 +92,10 @@ export class MatomoElement extends DBPLitElement { ...@@ -92,6 +92,10 @@ export class MatomoElement extends DBPLitElement {
_paq.push(['trackEvent', 'Error', e.error.message + '\n' + e.error.stack]); _paq.push(['trackEvent', 'Error', e.error.message + '\n' + e.error.stack]);
}); });
window.addEventListener('unhandledrejection', function(e) {
_paq.push(['trackEvent', 'UnhandledRejection', e.reason]);
});
this.isRunning = true; this.isRunning = true;
if (this.lastEvent.length > 0) { if (this.lastEvent.length > 0) {
console.log('MatomoElement* (' + this.isRunning + '): ' + this.lastEvent[1] + ', ' + this.lastEvent[2]); console.log('MatomoElement* (' + this.isRunning + '): ' + this.lastEvent[1] + ', ' + this.lastEvent[2]);
......
...@@ -4,7 +4,8 @@ You can install this component via npm: ...@@ -4,7 +4,8 @@ You can install this component via npm:
```bash ```bash
npm i @dbp-toolkit/notification npm i @dbp-toolkit/notification
` ```
## Usage ## Usage
```html ```html
......
{ {
"name": "@dbp-toolkit/notification", "name": "@dbp-toolkit/notification",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/notification", "homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/notification",
"version": "0.1.0", "version": "0.1.1",
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"repository": { "repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment