We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffa72d2 + b9efb46 commit 8f113ceCopy full SHA for 8f113ce
src/coffee/card.coffee
@@ -123,9 +123,9 @@ class Card
123
if navigator?.userAgent
124
ua = navigator.userAgent.toLowerCase()
125
if ua.indexOf('safari') != -1 and ua.indexOf('chrome') == -1
126
- QJ.addClass @$card, 'jp-card-safari'
127
- if (new Function("/*@cc_on return @_jscript_version; @*/")())
128
- QJ.addClass @$card,'jp-card-ie-10'
+ @$card.addClass 'safari'
+ if (/MSIE 10\./i.test(navigator.userAgent))
+ @$card.addClass 'ie-10'
129
# ie 11 does not support conditional compilation, use user agent instead
130
if (/rv:11.0/i.test(navigator.userAgent))
131
QJ.addClass @$card, 'jp-card-ie-11'
0 commit comments