Buffer fight continues

Gun & SEA need better modularization to support other than html script tags properly!
This commit is contained in:
Mika 2018-01-26 10:43:31 +02:00 committed by GitHub
parent b8a78cc128
commit ac743b11e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ var root;
}
}(this));
const Buffer = Gun.SEA.Buffer || require('buffer')
const Buffer = (Gun.SEA && Gun.SEA.Buffer) || require('buffer')
const seaIndexedDb = new Gun.SEA.EasyIndexedDB('SEA', 'GunDB', 1)