diff options
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 5e29a5932..dfee837d5 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -191,4 +191,14 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data, $route.reload(); }; + this.getMediaType = function (type) { + if (type && type.indexOf('audio') === 0) { + return 'audio'; + } else if (type && type.indexOf('video') === 0) { + return 'video'; + } else { + return undefined; + } + }; + });
\ No newline at end of file |