Skip to content

Commit

Permalink
Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Aug 27, 2024
1 parent fecc4e2 commit 079a480
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
exclude: ".yarn/|yarn.lock|static/f3cc.js"
exclude: ".yarn/|yarn.lock|static/f3cc"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.16.0
rev: 1.20.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.3"
rev: "v0.6.2"
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -28,7 +28,7 @@ repos:
hooks:
- id: eslint
additional_dependencies:
- eslint
- eslint@8.56.0
- eslint-config-prettier
- "@babel/core"
- "@babel/eslint-parser"
Expand Down
2 changes: 1 addition & 1 deletion feincms3_cookiecontrol/embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.utils.html import format_html
from django.utils.text import slugify
from django.utils.translation import pgettext, pgettext_lazy
from feincms3.embedding import embed_vimeo, embed_youtube, embed_srf
from feincms3.embedding import embed_srf, embed_vimeo, embed_youtube


__all__ = ["embed", "wrap"]
Expand Down
2 changes: 1 addition & 1 deletion feincms3_cookiecontrol/static/f3cc/gcm.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(()=>{window.dataLayer=window.dataLayer||[];function a(){dataLayer.push(arguments)}a("consent","default",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"});})();
(()=>{window.dataLayer=window.dataLayer||[];function a(){window.dataLayer.push(arguments)}a("consent","default",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"});})();
14 changes: 7 additions & 7 deletions src/gcm.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
window.dataLayer = window.dataLayer || [];
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments);
window.dataLayer.push(arguments)
}
gtag("consent", "default", {
ad_user_data: "granted",
ad_personalization: "granted",
ad_storage: "granted",
analytics_storage: "granted",
});
ad_user_data: "granted",
ad_personalization: "granted",
ad_storage: "granted",
analytics_storage: "granted",
})

0 comments on commit 079a480

Please sign in to comment.