Update store/setters

This commit is contained in:
Aleksandr Statciuk
2023-05-01 21:34:16 +03:00
parent 96ec8b8de8
commit 85f9c7f352
6 changed files with 9 additions and 17 deletions

View File

@@ -1,3 +1,3 @@
module.exports = function ({ channel }) {
module.exports = function (channel) {
return channel || null
}

View File

@@ -1,3 +1,3 @@
module.exports = function ({ http_referrer }) {
module.exports = function (http_referrer) {
return http_referrer || null
}

View File

@@ -1,4 +1,3 @@
exports.url = require('./url')
exports.http_referrer = require('./http_referrer')
exports.user_agent = require('./user_agent')
exports.channel = require('./channel')

View File

@@ -1,7 +0,0 @@
const normalize = require('normalize-url')
module.exports = function ({ url }) {
const normalized = normalize(url, { stripWWW: false })
return decodeURIComponent(normalized).replace(/\s/g, '+')
}

View File

@@ -1,3 +1,3 @@
module.exports = function ({ user_agent }) {
module.exports = function (user_agent) {
return user_agent || null
}