loading...

Discussion on: Building a Simple Chrome Extension

Collapse
michaeldscherr profile image
Michael Scherr Author

How are you calling the function ajustaCpf()?

If you are calling it inline from popup.html, then it's not allowed in a chrome plugin.

You would need to move the handler to your magica.js file.

Issue I am referring to: stackoverflow.com/questions/363243...

If that doesn't help try and post your code on github so I can take another look.

Collapse
icaropnbr profile image
icaropnbr

Thanks a lot!!

Yes, I was doing it inline:

<button onClick="ajustaCpf()" class="button" >CPF</button>

I'll try what you referred. Sooner or later we'll talk again.

;)

Thread Thread
icaropnbr profile image
icaropnbr

It worked!
Thanks a lot for your help!!

Keep the good work!

;)