Skip to content

Commit

Permalink
Merge pull request #7184 from lineus/fix-7173
Browse files Browse the repository at this point in the history
fixes #7173 fallback to safe-buffer in the browser
  • Loading branch information
vkarpov15 committed Oct 26, 2018
2 parents a611926 + 4d7d05f commit addc12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/types/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

'use strict';

const NodeBuffer = global.Buffer;

const Binary = require('../driver').get().Binary;
const utils = require('../utils');
const Buffer = require('safe-buffer').Buffer;

const NodeBuffer = global.Buffer || Buffer;

/**
* Mongoose Buffer constructor.
*
Expand Down

0 comments on commit addc12a

Please sign in to comment.