overleaf/services/web/public/coffee/app/ide/binary-files/controllers/BinaryFileController.coffee
2014-07-03 17:05:50 +01:00

7 lines
No EOL
177 B
CoffeeScript

define [
"base"
], (App) ->
App.controller "BinaryFileController", ["$scope", ($scope) ->
$scope.extension = (file) ->
return file.name.split(".").pop()?.toLowerCase()
]