Use CSS-based mobile detection
This commit is contained in:
parent
1c71ede145
commit
f44b67489d
2 changed files with 2 additions and 5 deletions
|
@ -437,7 +437,7 @@ npm run build-electron-{windows, darwin, linux}</pre>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
<li ng-if="isMobileUi()">
|
<li class="mobile">
|
||||||
<form class="form-inline" role="form">
|
<form class="form-inline" role="form">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
|
@ -447,7 +447,7 @@ npm run build-electron-{windows, darwin, linux}</pre>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
<li ng-if="!isMobileUi()">
|
<li class="desktop">
|
||||||
<form class="form-inline" role="form">
|
<form class="form-inline" role="form">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
|
|
|
@ -121,9 +121,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// expose
|
|
||||||
$rootScope.isMobileUi = function() { return utils.isMobileUi(); };
|
|
||||||
|
|
||||||
if (typeof $scope.documentVisibilityChange !== "undefined") {
|
if (typeof $scope.documentVisibilityChange !== "undefined") {
|
||||||
document.addEventListener($scope.documentVisibilityChange, function() {
|
document.addEventListener($scope.documentVisibilityChange, function() {
|
||||||
if (!document[$scope.documentHidden]) {
|
if (!document[$scope.documentHidden]) {
|
||||||
|
|
Loading…
Reference in a new issue