Skip to content

Instantly share code, notes, and snippets.

@thaenor
Created November 9, 2017 16:15
Show Gist options
  • Save thaenor/c63eb7b3ae6ae3ba834439f0300dac28 to your computer and use it in GitHub Desktop.
Save thaenor/c63eb7b3ae6ae3ba834439f0300dac28 to your computer and use it in GitHub Desktop.
How I'm calling Google API in Electron
<script>
if (typeof module === 'object') {
window.module = module; module = undefined;
}
</script>
<script async defer src="https://apis.google.com/js/api.js" onload="this.onload=function(){};handleClientLoad()" onreadystatechange="if (this.readyState === 'complete') this.onload()"></script>
<script>
if (window.module)
module = window.module;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment