update main.js, don't show dialog when clicked share button in plugin mode