mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: prevent nft removing ua db
This commit is contained in:
@@ -10,6 +10,7 @@ const { randUserAgent } = require('@tonyrl/rand-user-agent');
|
||||
* @returns A random useragent for the given specifications.
|
||||
*/
|
||||
module.exports = ({ browser = 'chrome', os = 'mac os', device = 'desktop' }) => {
|
||||
require('@tonyrl/rand-user-agent/data/user-agents.json') // prevent @vercel/nft from removing the file
|
||||
device = device.toLowerCase();
|
||||
browser = browser.toLowerCase();
|
||||
os = os.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user