mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
wrapping findBootstrapEnvironment so that it doesn't run before the DOM is ready #2417
This commit is contained in:
@@ -256,6 +256,7 @@
|
|||||||
|
|
||||||
findBootstrapEnvironment: function() {
|
findBootstrapEnvironment: function() {
|
||||||
//http://stackoverflow.com/questions/14441456/how-to-detect-which-device-view-youre-on-using-twitter-bootstrap-api
|
//http://stackoverflow.com/questions/14441456/how-to-detect-which-device-view-youre-on-using-twitter-bootstrap-api
|
||||||
|
$(document).ready(function() {
|
||||||
var envs = ['xs', 'sm', 'md', 'lg'],
|
var envs = ['xs', 'sm', 'md', 'lg'],
|
||||||
$el = $('<div>');
|
$el = $('<div>');
|
||||||
|
|
||||||
@@ -270,6 +271,7 @@
|
|||||||
return env;
|
return env;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// get all the url params in a single key/value hash
|
// get all the url params in a single key/value hash
|
||||||
|
|||||||
Reference in New Issue
Block a user