src/state/detectShare.js
/**
 * isShareLink returns true iff the pathname contains the text `share`
 * @returns {boolean}
 */
isShareLink returns true iff the pathname contains the text `share`
@returns {boolean}
isShareLink returns true iff the pathname contains the text ` share ` @returns { boolean }
function isShareLink() {
  const path = window.location.hash;
  const shareIndicator = "share";
  return path.includes(shareIndicator);
}
function isShareLink ( ) { const path = window . location . hash ; const shareIndicator = "share" ; return path . includes ( shareIndicator ) ; }
isShareLink returns true iff the pathname contains the text `share`
 @returns {boolean}
isShareLink returns true iff the pathname contains the text ` share ` @returns { boolean }