diff --git a/directives/input.html b/directives/input.html index d275638..ed88735 100644 --- a/directives/input.html +++ b/directives/input.html @@ -3,7 +3,7 @@ - + diff --git a/js/inputbar.js b/js/inputbar.js index 6ebbccf..ef8e0c3 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -25,6 +25,9 @@ weechat.directive('inputBar', function() { settings, utils) { + // Expose utils to be able to check if we're on a mobile UI + $scope.utils = utils; + // E.g. Turn :smile: into the unicode equivalent $scope.inputChanged = function() { $scope.command = emojione.shortnameToUnicode($scope.command); @@ -504,10 +507,6 @@ weechat.directive('inputBar', function() { $scope.completeNick(); return true; }; - - $scope.hideCompleteNickButton = function() { - return !utils.isMobileUi(); - }; }] }; });