Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
umami
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Janne Mareike Koschinski
umami
Commits
add97d54
Commit
add97d54
authored
4 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
fix DNT for firefox
parent
7eb3d35a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-2
4 additions, 2 deletions
Dockerfile
src/fix.diff
+13
-0
13 additions, 0 deletions
src/fix.diff
with
17 additions
and
2 deletions
Dockerfile
+
4
−
2
View file @
add97d54
FROM
node:alpine
RUN
apk add
--no-cache
git
&&
\
git clone https://github.com/mikecao/umami.git /umami
&&
\
cd
umami
&&
\
git clone https://github.com/mikecao/umami.git /umami
WORKDIR
/umami
ADD
src/fix.diff /umami/fix.diff
RUN
git apply fix.diff
&&
\
npm
install
ADD
src/docker-entrypoint.sh /
WORKDIR
/umami
...
...
This diff is collapsed.
Click to expand it.
src/fix.diff
0 → 100644
+
13
−
0
View file @
add97d54
diff --git a/lib/web.js b/lib/web.js
index 4b70389..c5c9fca 100644
--- a/lib/web.js
+++ b/lib/web.js
@@ -49,7 +49,7 @@
export const hook = (_this, method, callback) => {
export const doNotTrack = () => {
if (window.doNotTrack || navigator.doNotTrack || navigator.msDoNotTrack || 'msTrackingProtectionEnabled' in window.external) {
- if (window.doNotTrack == "1" || navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1" || window.external.msTrackingProtectionEnabled()) {
+ if (window.doNotTrack == "1" || navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1" || (window.external.msTrackingProtectionEnabled && window.external.msTrackingProtectionEnabled())) {
return true
} else {
return false
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment