openid / OpenYOLO-Web

Web protocol for credential exchange and update - "You Only Login Once"
http://openid.net/wg/ac/
Apache License 2.0
100 stars 16 forks source link

Fix global variable L that clashes with other libraries #57

Closed disaacson closed 6 years ago

disaacson commented 6 years ago

I'm not sure if this is endemic to this project, or Google's build process, but the minified code ends up with a global variable window.L that clashes with other libraries.

I see this in the compiled code:

var L = 0;
function K(g) {
  return "jscomp_symbol_" + (g || "") + L++
}

I posted a question on Stack Overflow about it. Someone suggested wrapping it in an IIFE.

TMSCH commented 6 years ago

Thanks @disaacson for the feedback. We're working on the fix, it's actually on Google side. OpenYolo provides binaries wrapped in a IIFE and without.