KartikTalwar / gmail.js

Gmail JavaScript API
MIT License
3.74k stars 455 forks source link

Fixed compose buttons being duplicated when using add_compose_button multiple times #680

Closed DrParanoia closed 2 years ago

DrParanoia commented 2 years ago

I you try to add two buttons using add_compose_button you will get three, if you try to add three buttons, you will get 6 and so on...

josteink commented 2 years ago

Hey there and thanks for the PR.

The change looks reasonable to. Thanks for the fix!

Could also bump the version and add your fix to the change log?

DrParanoia commented 2 years ago

@josteink Sure, just a sec

DrParanoia commented 2 years ago

@josteink Done! 😄

josteink commented 2 years ago

Thanks. Great! Consider it merged!

I'll try to get a new version out to npm js later today 🙂

(On the phone right now)

DrParanoia commented 2 years ago

@josteink Thanks a bunch!

josteink commented 2 years ago

Now published on npmjs as 1.0.19!

https://www.npmjs.com/package/gmail-js