root.js 515 B

12345678910111213141516
  1. // Security, Encryption, and Authorization: SEA.js
  2. // MANDATORY READING: https://gun.eco/explainers/data/security.html
  3. // IT IS IMPLEMENTED IN A POLYFILL/SHIM APPROACH.
  4. // THIS IS AN EARLY ALPHA!
  5. if(typeof window !== "undefined"){ module.window = window }
  6. var tmp = module.window || module;
  7. var SEA = tmp.SEA || {};
  8. if(SEA.window = module.window){ SEA.window.SEA = SEA }
  9. try{ if(typeof MODULE !== "undefined"){ MODULE.exports = SEA } }catch(e){}
  10. module.exports = SEA;