diff options
| author | Felix Hanley <felix@userspace.com.au> | 2020-03-13 02:27:46 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2020-03-13 02:27:46 +0000 |
| commit | e345d142136c1416e73dc0f5dc9993af785d845b (patch) | |
| tree | e3d8de2b02ca1d5f769cd76c002b62bbaa0de42a /counter | |
| parent | cf612c764090581f840baef20f1d3a42ae48ebcd (diff) | |
| download | sws-e345d142136c1416e73dc0f5dc9993af785d845b.tar.gz sws-e345d142136c1416e73dc0f5dc9993af785d845b.tar.bz2 | |
Trial alternative menu
Diffstat (limited to 'counter')
| -rw-r--r-- | counter/sws.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/counter/sws.js b/counter/sws.js index 5145cee..5011b9a 100644 --- a/counter/sws.js +++ b/counter/sws.js @@ -8,7 +8,7 @@ var me = d.currentScript var _sws = w._sws || {noauto: false, local: false} _sws.d = _sws.d || me.src -_sws.site = _sws.site || me.dataset.site +_sws.id = _sws.id || me.dataset.id function count (p, obj) { if (!_sws.local && l.hostname.match(/(localhost$|^127\.|^10\.|^172\.16\.|^192\.168\.)/)) @@ -47,7 +47,7 @@ ready(function () { if (!_sws.noauto) { var ep = new URL(_sws.d) count('{{ .Endpoint }}', { - i: _sws.site, + id: _sws.id, s: l.protocol, h: l.host, p: l.pathname, |
