Skip to content

Commit e8d7e11

Browse files
authored
Merge pull request #83 from mbleigh/patch-1
Attach google-js-api to shadow root
2 parents 519662d + e41ef23 commit e8d7e11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

google-client-loader.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@
139139

140140
ready: function() {
141141
this._loader = document.createElement('google-js-api');
142+
143+
if (!this.shadowRoot) { this.attachShadow({mode: 'open'}); }
144+
this.shadowRoot.appendChild(this._loader);
145+
142146
this.listen(this._loader, 'js-api-load', '_loadClient');
143147
},
144148

0 commit comments

Comments
 (0)