mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
react-native detection, and load needed shims (#1349)
* react-native detection * added lib mobile * changed back to gun. for another solution
This commit is contained in:
parent
7cb337c158
commit
5c52df2eee
@ -1 +1,4 @@
|
||||
module.exports = require('./gun.js')
|
||||
if(!(typeof navigator == "undefined") && navigator.product == "ReactNative"){
|
||||
require("./lib/mobile.js");
|
||||
}
|
||||
module.exports = require('./gun.js');
|
||||
|
Loading…
x
Reference in New Issue
Block a user