mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 06:41:18 -08:00
Revise default for Buffer in the browser
Back in 7d12d89a0a we added support for
Node.js global `Buffer` object, explicitly exposing it to the module
loader sandbox. The value `{}` was used in the browser, but is now
causing problems with libraries that perform feature detection.
This commit is contained in:
parent
845e8294cd
commit
da1905b789
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) {
|
|||
clearInterval: clearInterval,
|
||||
setTimeout: setTimeout,
|
||||
clearTimeout: clearTimeout,
|
||||
Buffer: $tw.browser ? {} : Buffer,
|
||||
Buffer: $tw.browser ? undefined : Buffer,
|
||||
$tw: $tw,
|
||||
require: function(title) {
|
||||
return $tw.modules.execute(title, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue