Skip to content

Instantly share code, notes, and snippets.

@pushandplay
Created July 13, 2013 21:00
Show Gist options
  • Save pushandplay/5992196 to your computer and use it in GitHub Desktop.
Save pushandplay/5992196 to your computer and use it in GitHub Desktop.
FIX for Bootstrap and Google Maps Info window styes problem
# FIX for Bootstrap and Google Maps Info window styes problem
css = document.createElement 'style'
css.type = 'text/css'
styles = 'img[src*="gstatic.com/"], img[src*="googleapis.com/"] { max-width: none; }'
if css.styleSheet
css.styleSheet.cssText = styles
else
css.appendChild(document.createTextNode styles)
document.getElementsByTagName("head")[0].appendChild css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment