fix: prevent nft removing ua db

This commit is contained in:
TonyRL
2023-06-16 17:03:05 +00:00
parent 84ee153f81
commit 22eec4b834
+1
View File
@@ -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();