mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
switch to os shim for safety (#1136)
* switch to os shim for safety * Update Client.js
This commit is contained in:
@@ -46,4 +46,4 @@ module.exports = {
|
||||
Constants: require('./util/Constants'),
|
||||
};
|
||||
|
||||
if (typeof window !== 'undefined') window.Discord = module.exports; // eslint-disable-line no-undef
|
||||
if (require('os').platform() === 'browser') window.Discord = module.exports; // eslint-disable-line no-undef
|
||||
|
||||
Reference in New Issue
Block a user