mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "Stop using user agent to detect mobile devices. Use a media query and yepnope to load the appropriate css and customizations."
This commit is contained in:
@@ -5,9 +5,7 @@
|
||||
|
||||
var $buo = function() {
|
||||
|
||||
var badAndroid = false,
|
||||
haveJquery = (typeof($) !== 'undefined'),
|
||||
ua = null;
|
||||
var badAndroid = false, ua = null;
|
||||
|
||||
// Sometimes we have to resort to parsing the user agent string. :(
|
||||
if (navigator && navigator.userAgent) {
|
||||
@@ -55,11 +53,6 @@ var $buo = function() {
|
||||
// shift the body down to make room for our notification div
|
||||
document.body.style.marginTop = (div.clientHeight) + "px";
|
||||
|
||||
if (!haveJquery) {
|
||||
var h = document.getElementsByTagName('html')[0];
|
||||
h.className = h.className.replace(/(\s|^)css-loading(\s|$)/g, ' ');
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
$bu=$buo();
|
||||
|
||||
Reference in New Issue
Block a user