Skip to content

Commit

Permalink
react-native detection, and load needed shims (#1349)
Browse files Browse the repository at this point in the history
* react-native detection

* added lib mobile

* changed back to gun. for another solution
  • Loading branch information
bmatusiak authored Jan 17, 2024
1 parent 7cb337c commit 5c52df2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion browser.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
module.exports = require('./gun.js')
if(!(typeof navigator == "undefined") && navigator.product == "ReactNative"){
require("./lib/mobile.js");
}
module.exports = require('./gun.js');

0 comments on commit 5c52df2

Please sign in to comment.