Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 29, 2022
1 parent b1a939e commit 814e784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ function IOSocket(server, settings, adapter, ignore, store) {
* Solution: We hook on path.resolve to correctly handle the relevant case
*/
const pathResolve = path.resolve;
const pathResolveHooked = function() {
const pathResolveHooked = function () {
//console.log('arguments: ' + arguments.length + ': ' + arguments[0] + ' - ' + arguments[1] + ' - ' + arguments[2]);
if (arguments.length === 3 && arguments[1] === './../../' && arguments[2].startsWith('socket.io-client/dist/socket.io.js')) {
path.resolve = pathResolve; // reset because require.resolve also uses path.resolve internally
Expand Down

0 comments on commit 814e784

Please sign in to comment.