Codeminer42/cm42-central

View on GitHub
app/assets/javascripts/services/urlService.js

Summary

Maintainability
A
0 mins
Test Coverage
const getHash = word => {
  const hash = window.location.hash;

  if (hash.includes(word)) {
    const cleanHash = hash.replace(word, '');
    return cleanHash;
  }

  return null;
};

export { getHash };