ie8-responsive-file-warning.js 598 Bytes
Newer Older
1
2
3
4
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
/*!
5
 * Copyright 2011-2014 Twitter, Inc.
6
7
8
9
10
 *
 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
 * details, see http://creativecommons.org/licenses/by/3.0/.
 */
// Intended to prevent false-positive bug reports about responsive styling supposedly not working in IE8.
Zlatan Vasović's avatar
Zlatan Vasović committed
11
if (window.location.protocol == 'file:') {
XhmikosR's avatar
XhmikosR committed
12
  window.alert('ERROR: Bootstrap\'s responsive CSS is disabled!\nSee getbootstrap.com/getting-started/#respond-file-proto for details.')
Zlatan Vasović's avatar
Zlatan Vasović committed
13
}