mirror of
https://github.com/iptv-org/iptv
synced 2026-10-25 12:28:53 -04:00
Update store/setters
This commit is contained in:
1 parent
96ec8b8de8
commit
85f9c7f352
6 files changed
+9
-17
No files matched your search
@@ -1,3 +1,3 @@
|
||||
module.exports = function ({ channel }) {
|
||||
module.exports = function (channel) {
|
||||
return channel || null
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
module.exports = function ({ http_referrer }) {
|
||||
module.exports = function (http_referrer) {
|
||||
return http_referrer || null
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
exports.url = require('./url')
|
||||
exports.http_referrer = require('./http_referrer')
|
||||
exports.user_agent = require('./user_agent')
|
||||
exports.channel = require('./channel')
|
||||
@@ -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, '+')
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
module.exports = function ({ user_agent }) {
|
||||
module.exports = function (user_agent) {
|
||||
return user_agent || null
|
||||
}
|
||||
Reference in new issue
Block a user