Enable pages in counter.dev (#571)

* Enable pages in counter.dev

Not perfect but will work fine for a while.

* Make counter.dev's `referrerPolicy` togglable

* Make `referrerPolicy` take more options

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
SalahDin Ahmed 2022-04-01 21:06:38 +03:00 committed by GitHub
parent a50f947384
commit f6440e69d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,10 @@
screen: screen.width + "x" + screen.height,
user: "{{ .id }}",
utcoffset: "1",
})
}),
{{ with .referrerPolicy }}
{ referrerPolicy: "{{ . }}" }
{{ end }}
);
}
sessionStorage.setItem("_swa", "1");