Skip to content

Commit

Permalink
Do not forcePolyfill if customElements not defined (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezguille authored Nov 21, 2019
1 parent d105e44 commit 172d84b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public void configurePage(InitialPageSettings settings) {
// Force login page to use Shady DOM to avoid problems with browsers and
// password managers not supporting shadow DOM
settings.addInlineWithContents(InitialPageSettings.Position.PREPEND,
"window.customElements=window.customElements||{};" +
"window.customElements.forcePolyfill=true;" +
"if (window.customElements) { window.customElements.forcePolyfill = true; }" +
"window.ShadyDOM={force:true};", InitialPageSettings.WrapMode.JAVASCRIPT);
}

Expand Down

0 comments on commit 172d84b

Please sign in to comment.