diff options
Diffstat (limited to 'js/filter')
-rw-r--r-- | js/filter/TrustUrl.js | 4 | ||||
-rw-r--r-- | js/filter/UnreadCountFormatter.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/js/filter/TrustUrl.js b/js/filter/TrustUrl.js index e0958ad2d..745e44c5e 100644 --- a/js/filter/TrustUrl.js +++ b/js/filter/TrustUrl.js @@ -7,10 +7,10 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.filter('trustUrl', ($sce) => { +app.filter('trustUrl', function ($sce) { 'use strict'; - return (url) => { + return function (url) { return $sce.trustAsResourceUrl(url); }; });
\ No newline at end of file diff --git a/js/filter/UnreadCountFormatter.js b/js/filter/UnreadCountFormatter.js index 3450114b1..671d4e3c5 100644 --- a/js/filter/UnreadCountFormatter.js +++ b/js/filter/UnreadCountFormatter.js @@ -7,10 +7,10 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.filter('unreadCountFormatter', () => { +app.filter('unreadCountFormatter', function () { 'use strict'; - return (unreadCount) => { + return function (unreadCount) { if (unreadCount > 999) { return '999+'; } |