hash.js 231 B

1234567891011
  1. var adapter = require('./');
  2. /**
  3. * Extracts the values from process.env.
  4. *
  5. * @type {Function}
  6. * @public
  7. */
  8. module.exports = adapter(function hash() {
  9. return /(debug|diagnostics)=([^&]+)/i.exec(window.location.hash)[2];
  10. });