From: Chris Rebert Date: Sun, 19 Jan 2014 02:35:47 +0000 (-0800) Subject: make WP8 device-width hack code fully consistent between docs HTML & docs JS X-Git-Tag: v3.1.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b67cba2b4d1fe2b7a9685bb5c80eb77ee64e6ab1;p=thirdparty%2Fbootstrap.git make WP8 device-width hack code fully consistent between docs HTML & docs JS --- diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 29c72cd0e9..742b83ed80 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -18,14 +18,13 @@ // // See Getting Started docs for more information if (navigator.userAgent.match(/IEMobile\/10\.0/)) { - var msViewportStyle = document.createElement('style'); + var msViewportStyle = document.createElement('style') msViewportStyle.appendChild( document.createTextNode( '@-ms-viewport{width:auto!important}' ) - ); - document.querySelector('head'). - appendChild(msViewportStyle); + ) + document.querySelector('head').appendChild(msViewportStyle) } diff --git a/docs/getting-started.html b/docs/getting-started.html index 01cb2e3d9e..df549d841c 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -494,13 +494,13 @@ bootstrap/ {% highlight js %} if (navigator.userAgent.match(/IEMobile\/10\.0/)) { - var msViewportStyle = document.createElement("style") + var msViewportStyle = document.createElement('style') msViewportStyle.appendChild( document.createTextNode( - "@-ms-viewport{width:auto!important}" + '@-ms-viewport{width:auto!important}' ) ) - document.querySelector("head").appendChild(msViewportStyle) + document.querySelector('head').appendChild(msViewportStyle) } {% endhighlight %}

For more information and usage guidelines, read Windows Phone 8 and Device-Width.