Created
May 8, 2014 18:53
-
-
Save joescii/7fd2dd07be210ff0c54f to your computer and use it in GitHub Desktop.
IE9 awareness in Lift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object IfBrowserIs { | |
def ie9 = if(S.request.map(_.isIE9).openOr(false)) PassThru else ClearNodes | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Included only if the browser is ie9! --> | |
<script src="/js/3rdlib/placeholders-3.0.2.min.js" type="text/javascript" data-lift="IfBrowserIs.ie9"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment