diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-30 16:20:05 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-30 16:20:05 +0200 |
commit | ee3d2332ec97487893ae5f1f46b599c550b25eb6 (patch) | |
tree | e5a46f12fc027e3deb7c9436160595bb60d99356 /js/controller/ContentController.js | |
parent | 026ccbc8875fc78b665dec95c308afe8a3c5899e (diff) |
fix #156
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 |