Skip to content

Commit

Permalink
feature(init): fixing jshint, limiting console warning to IE<=8
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Apr 5, 2015
1 parent c084e8a commit 24d1839
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions viewport-units-buggyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
@end
@if (@_jscript_version < 9) {
isOldIE = true;
isOldIE = true;
}
@end
Expand Down Expand Up @@ -127,12 +127,12 @@

if (isOldIE || (!options.force && !isMobileSafari && !isBuggyIE && !isBadStockAndroid && !isOperaMini && (!options.hacks || !options.hacks.required(options)))) {
// this buggyfill only applies to mobile safari, IE9-10 and the Stock Android Browser.
if (window.console) {
console.info('This script will only work with browsers that have buggy implementations of viewport units and will not polyfill viewport units in older browsers (e.g. IE <= 8)');
}
if (window.console && isOldIE) {
console.info('viewport-units-buggyfill requires a proper CSSOM and basic viewport unit support, which are not available in IE8 and below');
}

return {
init: function () {}
init: function () {}
};
}

Expand Down

0 comments on commit 24d1839

Please sign in to comment.