Skip to content

Commit

Permalink
changes after PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaeile committed Nov 24, 2023
1 parent 29db447 commit ab87e14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/resources/admin/widgets/matomo/matomo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ const settings = {
const token = app.config['matomo.token'];

exports.get = function (req) {

if (!req.params.contentId) {
const errorView = resolve("./error-handler/error.html");
const errorModel = {styleUri: libs.portal.assetUrl({
const errorModel = {
styleUri: libs.portal.assetUrl({
path: "matomo.css"
}),}
}),
};
return {
body: libs.thymeleaf.render(errorView, errorModel),
contentType: 'text/html'
Expand Down

0 comments on commit ab87e14

Please sign in to comment.