Skip to content

Commit

Permalink
Merge pull request #83 from mbleigh/patch-1
Browse files Browse the repository at this point in the history
Attach google-js-api to shadow root
  • Loading branch information
e111077 authored Oct 8, 2017
2 parents 519662d + e41ef23 commit e8d7e11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions google-client-loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@

ready: function() {
this._loader = document.createElement('google-js-api');

if (!this.shadowRoot) { this.attachShadow({mode: 'open'}); }
this.shadowRoot.appendChild(this._loader);

this.listen(this._loader, 'js-api-load', '_loadClient');
},

Expand Down

0 comments on commit e8d7e11

Please sign in to comment.