Read Gmail JavaScript API no work | Failed to execute ‘atob’

I have a problem with displaying decrypted messages using the Gmail API, can someone help me and explain how to do it to make everything work properly.

The error that is displayed to me: Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

My testing page:
https://apps.klubuntu.eu.org/dev/gapi/browser-samples-master/gmail/quickstart/

PS: Sorry for all grammar mistakes, i am not very advanced in English yet

I’m try decrypt messages using atob & i’m try split messages and use atob.