extensions/amp-story/1.0/amp-story-share.js
/**
   * NOTE(alanorozco): This is a duplicate of the logic in the
   * `amp-social-share` component.
   * @return {boolean} Whether the browser supports native system sharing.
   */
This is a duplicate of the logic in the
`amp-social-share` component.
@return {boolean} Whether the browser supports native system sharing.
This is a duplicate of the logic in the ` amp - social - share ` component . @return { boolean } Whether the browser supports native system sharing .
isSystemShareSupported_() {
    const viewer = Services.viewerForDoc(this.storyEl_);
    const platform = Services.platformFor(this.win_);
    const isChromeWebview = viewer.isWebviewEmbedded() && platform.isChrome();
    return 'share' in navigator && !isChromeWebview;
  }
isSystemShareSupported_ ( ) { const viewer = Services . viewerForDoc ( this . storyEl_ ) ; const platform = Services . platformFor ( this . win_ ) ; const isChromeWebview = viewer . isWebviewEmbedded ( ) && platform . isChrome ( ) ; return 'share' in navigator && ! isChromeWebview ; }
NOTE(alanorozco): This is a duplicate of the logic in the
 `amp-social-share` component.
NOTE ( alanorozco ) : This is a duplicate of the logic in the ` amp - social - share ` component .
// Chrome exports navigator.share in WebView but does not implement it. // See https://bugs.chromium.org/p/chromium/issues/detail?id=765923