diff --git a/js/glowingbear.js b/js/glowingbear.js index 5453979..42aa45d 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -843,7 +843,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', // Save setting for playing sound on notification $store.bind($scope, "soundnotification", false); // Save setting for font family - $store.bind($scope, "fontfamily", $('.monospace').css('font-family')); + $store.bind($scope, "fontfamily", angular.element('.monospace').css('font-family')); // Save setting for displaying embeds in rootScope so it can be used from service $rootScope.visible = $scope.noembed === false; @@ -894,7 +894,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', // Update font family when changed $scope.$watch('fontfamily', function() { - $('.monospace').css('font-family', $scope.fontfamily); + angular.element('.monospace').css('font-family', $scope.fontfamily); }); $scope.setActiveBuffer = function(bufferId, key) {