mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
tinify webpacks (#1975)
* tinify webpack * meme * fix long version * more changes * even smoler * fix up logic * fix build * undo changes to user agent manager because its not webpack'd anymore * the heck * fix stupid * clean up browser rules * typo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
exports.Package = require('../../package.json');
|
||||
const { Error, RangeError } = require('../errors');
|
||||
exports.browser = typeof window !== 'undefined';
|
||||
|
||||
/**
|
||||
* Options for a client.
|
||||
@@ -56,9 +57,9 @@ exports.DefaultOptions = {
|
||||
*/
|
||||
ws: {
|
||||
large_threshold: 250,
|
||||
compress: require('os').platform() !== 'browser',
|
||||
compress: !exports.browser,
|
||||
properties: {
|
||||
$os: process ? process.platform : 'discord.js',
|
||||
$os: exports.browser ? 'browser' : process.platform,
|
||||
$browser: 'discord.js',
|
||||
$device: 'discord.js',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user