Fix bug JS cause by handleShareButton has removed.